Sublime Forum

Why ST doesn't recognize keyboard shortcut Ctrl+/ (Toggle Comment) on my keybord?

#1

It’s been a long time since I’ve been forced to create a different keyboard shortcut for Toggle Comment (Ctrl+;) instead of the default one (Ctrl+/) because ST simply doesn’t recognize this combination.
However, Ctrl+/ is recognized by any other software except ST.

My keyboard is ABNT2:

Activating sublime.log_input(True) in Console it recognizes both / and ? indidually:

chr evt: / (0x2f)
chr evt: ? (0x3f)

But it shows nothing when pressing Ctrl+/.

How to make ST (3 or 4) recognize Ctrl+/?

0 Likes

#2

What platform are you on and what version of ST are you using?

0 Likes

#3

Windows 10 and currently ST4, but as I said, it’s happening since ST3.

0 Likes

#4

All the applications I’ve tested don’t work with /, only with ;. This looks like expected behavior to me:

1 Like

#5

I believe you have not read my statement correctly.
My layout is ABNT2 (Brazilian) and ALL applications recognize Ctrl+/ EXCEPT ST3 and ST4.
It is not expected behavior.
At least in the software world.

0 Likes

#6

That keyboard in the gif is set up using ABNT2. Which applications did you test?

0 Likes

#7

Roblox Studio, in the Lua Script editor, is recognizing Ctrl+/.
There, if you press Ctr+/, it comments the line correctly.
image
However, now I see that testing the same combination in a Autohotkey script, it’s not being recognized…
image
I’ll try to contact AHK Staff…

0 Likes

#8

I actually noticed that, on the contrary, Roblox Studio is the exception that works Ctrl+/. The same shortcut in Discord, Autohotkey, ST, and others does not work.
It’s probably a problem on my windows and related to my keyboard’s physical communication.
In this way, I will close this topic.
Thank you for your help.

0 Likes

#9

It’s probably a problem on my windows and related to my keyboard’s physical communication.

It’s definitely not a hardware thing, you can see that it doesn’t work with the on-screen keyboard too. Windows handles shortcuts by normalizing them to standard shortcut keys and locations for compatibility. Otherwise applications would need to define their set of shortcuts per keyboard layout. In this case that results in a key not being bindable unfortunately. It sounds like Roblox Studio is incorrectly handling input on Windows in a way that would break for languages without ascii characters but inadvertently works for that specific key.

0 Likes

#10

Roblox has an editor? Today I learned.

0 Likes