Sublime Forum

Troubles with binding a second backslash key on an ISO keybo

#1

Hi!

I have iso keyboard, with smaller left shift and a second backslash button next to it.
I’m trying to bind ‘copy’ action to this key. It works, but only for the ‘main’ backslash button, that is near ‘Enter’ button. But I want to get the second backslash do the same thing - trying to utilize a conveniently placed extra key.

I tried watching input events via console - both keys work and produce same value 0x5c, but binding seems to work only for one of the keys.

Any ways to make it work?

0 Likes

#2

If I just bind the backslash key like this, it works:
{“keys”: “\”], “command”: “copy”},

Which is probably what I’m going to end up using, but it’s a bit weird that if I add modifiers like ctrl or alt, the binding doesn’t work for the left backslash.

0 Likes

#3

Did you check the character received by Sublime when you do ctrl+left backslash ?
On windows I had some problem with binding “alt+*” on a French keyboard but it was because windows was sending a ‘/’ to Sublime.
I had to settle for another shortcut

0 Likes