Sublime Forum

Keyboard shortcut using backslash?

#1

Hi there!

im wanting to make keyboard shortcuts using the key to the right of the left shift key.

On a windows keyboard it has a backslash.
im using a mac keyboard (on windows) and it has a tilde icon and a console icon, but im guessing this isn’t relevant as when i press it, it outputs - \\

is this possible?

Thanks!

0 Likes

#2

Just try?

For reference, you can use sublime.log_input(True) in the console to find out what ST sees when you press a certain key combination.

0 Likes

#3

awesome!
i get chr evt: \ (0x5c)

does that help?

0 Likes

#4

That looks good. Just create a key binding for "keys": "\\"] (double backslash because of JSON string escape mechanics).

1 Like

#5

This is great and helped a lot - but modifiers like ctrl+shift won’t work along…

0 Likes