Some of the default Key bindings are not usable on my (Scandinavian) keyboard. E.g. ctrl+[ or ctrl+] are not possible, as the []-characters always require Alt to be pressed as well.

I tried making my own key bindings by comparing my keyboard layout to a US layout and changing the default bindings accordingly (the idea was to map the commands to the same physical locations as on the US layout). The resulting user-binding file:

However, the only bindings that seem to come through are the ctrl+- and ctrl+shift+- which do get mapped to toggle_comment. All other mappings do not work.

I troubleshooting by enabling command logging (by writing sublime.log_commands(1) in the console window), but it only shows which commands are getting activated, not how Sublime Text interpreted the keyboard combo that triggered it, so I don't see a way to find out what I should actually write into the Key bindings file to get things working with the keys I would like.

Thanks for the tip! That allowed me to see what Sublime thought was being pressed. It seems that when I use only single keys at a time, they are correctly interpreted; but when certain keys (that differ between the US/UK and Scandinavian layouts) are used in combinations with Alt or Ctrl, they are often read incorrectly:

Swedish/Finnish keyboard:UK Keyboard:As a result, I was able to get commands mapped to the same physical keys as on the UK keyboard layout. Its not a very satisfactory solution though, because the menu labels for the keyboard shortcuts now are just plain wrong and give no memory aid for remembering the shortcuts.

If anyone knows the answer, I'm still interested to know what the underlying problem is - Python's Unicode support or somehting else? Any hope of Sublime switching to Python 3 (if that would help) or correcting this in some other way?