Home Download Buy Blog Forum Support

Sublime Text 3 overriding crucial keys in my keyboard layout

Sublime Text 3 overriding crucial keys in my keyboard layout

Postby BadFurDay on Thu Jul 18, 2013 10:39 am

Hi,

Since switching to sublime text 3, it has been impossible for me to unbind some commands which clash with my keyboard's layout.



Here's an example of a crucial key that has been disabled:

Ampersands (&) are made by pressing altgr+P on my keyboard layout (bépo).

There is a pre-bound command to that key combo in ST3: « { "keys": ["ctrl+alt+p"], "command": "prompt_select_workspace" }, »

I have tried to disable it by entering the following line in my user keymap: « { "keys": ["ctrl+alt+p"], "command": "unbound" } ». The command is now disabled and I do not see the prompt anymore when using altgr+P. However, I can not type ampersands in sublime text using altgr+P. It does nothing at all. It used to work in Sublime Text 2 by just removing the shortcut line from the global keymap, which I can't do anymore in Sublime Text 3.

I also tried to bind the "prompt_select_workspace" command to something else, but it does not unbind it from altgr+P and instead ends up having two working shortcuts.



TLDR Summary: I want to unbind a key so that it does what it's meant to do on my keyboard layout, but can't in ST3.

The following really important keys are not working anymore for me due to this problem: Ampersand (&), tilde (~), underscore (_). You can imagine how this impairs my coding ability. For now, I have switched back to Sublime Text 2, and hope to find a solution to this issue.

Thanks in advance for the help.

Eric B.
BadFurDay
 
Posts: 2
Joined: Thu Jul 18, 2013 10:32 am

Re: Sublime Text 3 overriding crucial keys in my keyboard layout

Postby BadFurDay on Thu Jul 18, 2013 10:49 am

If it helps anyone, I found a temporary solution by searching in the documentation. Here's my working key binding for ampersands:

{ "keys": ["ctrl+alt+p"], "command": "insert", "args": {"characters": "&"} },


I'd really like it if there was a simpler, more logical way to simply get rid of a shortcut instead of having to override it like that.


Eric B.
BadFurDay
 
Posts: 2
Joined: Thu Jul 18, 2013 10:32 am

Re: Sublime Text 3 overriding crucial keys in my keyboard layout

Postby gcollic on Thu Jul 25, 2013 8:52 am

I've got exactly the same critical problem, since I use http://bepo.fr/ layout too.
I'm pairing with people using azerty and qwerty layouts (switching quickly the layout with a shortcut), so I too would prefer to really unbound the command instead of mimicking bépo behavior.

Thanks,

Guillaume C.
gcollic
 
Posts: 1
Joined: Thu Jul 25, 2013 8:42 am

Re: Sublime Text 3 overriding crucial keys in my keyboard layout

Postby skuroda on Fri Jul 26, 2013 2:01 am

You can try overriding the package file to remove the keybinding you want. For the sake of simplicity, you can use PackageResourceViewer. Simply open Default/Default (your platform).sublime-keymap. Then remove the entry you want and save. It will create the file in the correct location for the "override" behavior.
skuroda
 
Posts: 685
Joined: Fri Oct 05, 2012 8:11 am


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 27 guests