Sublime Forum

Backslash in keybinding not working

#1

I am attempting to use the backslash key in a user keybinding.

First of all, this keybinding works as expected:

... { "keys": "super+f10"], "command": "reindent" }, ...

However when I replace f10 with “backslash” - which is an official documented key name for the backslash key ‘’ - then the keystroke will not work:

... { "keys": "super+backslash"], "command": "reindent" }, ...

Am I using ‘backslash’ incorrectly, or is this a bug?

0 Likes

#2

This one should work:

{ "keys": "super+\\"], "command": "reindent" }
0 Likes

#3

I founf the same problem with the slash char “/” so the comment function doesn’t work as I write here.
If i change the bindings the command is called correctly, so the problem is the key ‘/’

0 Likes