evilC wrote:Code: Select all
$]::Volume_Up
$[::Volume_Down
+]::]
+[::[
Kamil KW wrote:Thanks. We have some progress, but not there yet - when I press shift and a bracket, I get now { or }, but still no square brackets. Any idea?
So the resolution to this would've been changing the bottom two
remaps into
hotkeys. Remaps preserve the modifier that activated them, which in this case was a Shift, and Shift+] normally makes }. So it really didn't accomplish anything. Instead, you'd want this:
Code: Select all
$]::Volume_Up
$[::Volume_Down
+]::Send ]
+[::Send [
That should work. I think this was suggested at some point recently though. Otherwise, like I know was just posted above me is to make all 4 into hotkeys.
Edit: I tested it because issues were apparently run into. I'll have to explore, but I was able to repeat the issue that with the code I gave above, indeed... DUH.
Two options:
Code: Select all
$]::Send {Volume_Up}
$[::Send {Volume_Down}
+]::Send ]
+[::Send [
or
Code: Select all
+]::Send ]
+[::Send [
$]::Volume_Up
$[::Volume_Down
What I overlooked is that remaps don't just preserve the modifier you pressed as if one was required, but it also allows the remap to be activated by any modifier. The remaps on top were taking priority over the hotkeys on bottom!
So why does the first code work? Because it is purely hotkeys now. Shift+] can only activate the hotkey on the third line. The top hotkey is only activated if ] alone is pressed.
So why does the second code work? Because the hotkeys are now listed above the remaps, which gives them a higher priority. Shift+] will activate the hotkey, not the remap.