Some national characters are blocked in Sublime Text 3

I use Sublime Text 3 with a Polish keyboard (both hardware and keyboard installed in Windows 7), and I cannot enter "ć" ("c" with a Polish accent - Right Alt + c ) and "Ś" (capital " s "with an accent - Right Alt + Shift + c ).

Of the entire set consisting of eighteen Polish characters ( ęóąśłżźćńĘÓĄŚŁŻŹĆŃ ), these two are rather strange excpetion in Sublime Text 3.

What could be the reason for this and is there any workaround to call these letters from clippboard to copy?

I am sure that this is not caused by conflicts in the key binding between the main editor and the plugins (I installed a dozen of them), because I added these two lines to Preferences > Key Bindings -- User :

 { "keys": ["alt+c"], "command": "insert_snippet", "args": {"contents": "ć"} }, { "keys": ["shift+alt+s"], "command": "insert_snippet", "args": {"contents": "Ś"} }, 

And it didn’t help even a little (any possible conflicts would be overwritten by the above configuration change).

This problem arises from the main code of Sublime Text 3. I don’t know if and how it affects other languages ​​that use language-specific characters?

+5
source share
1 answer

Sublime Text 3 makes no difference between pressing Right Alt and Ctrl + Left Alt . This is a classic mistake found in many editors, which makes the life of non-Latin alphabets a bit of a nightmare for users.

It turned out that these two key bindings contradict the keyboard shortcuts defined by one of the plugins (via Modific to my case). To get around this, you need to override these keys in the user keyboard settings:

 { "keys": ["ctrl+alt+c"], "command": "insert_snippet", "args": {"contents": "ć"} }, { "keys": ["ctrl+shift+alt+s"], "command": "insert_snippet", "args": {"contents": "Ś"} }, 

This will solve the problem, but disable the Ctrl+Alt+C shortcut used to preview the code for the current line. You need to define a new key binding for it or stop using this key combination.

+4
source

Source: https://habr.com/ru/post/1202924/


All Articles