Sublime Forum

[BUG] Kb shortcuts not working properly in brazilian layout

#1

Hey, I am using sublime text 2 with Brazilian ABNT2 Layout (Windows 7), and my keyboard shortcuts are not working properlly.

Digging at this forum, I found out the sublime.log_input(True) command, and investigated a little bit.

What I found out is that when some modifier key (e.g. ctrl) is pressed, sublime uses the american layout instead of the defined layout in the OS.

In practice, this means that even if the the “toggle_comment” is mapped to “ctrl+/”, it will actually be mapped to “ctrl+;” on my keyboard.

What is worst is that the actual “/” key in my keyboard does not map to any key in the american layout, so sublime just ignores my command when I press “ctrl+/”. It doesn’t even appear in the console when log_input is set to True.

I tested with some other guys in simillar environments and the problem seems to happen with everyone.

0 Likes

Correct identify keyboard layout