Sublime Forum

Disable a default hotkey?

#1

Tried searching for “dvorak” and “disable hotkey” but did not see the answer

The ctrl+alt+p collides with my special dvorak keyboard, so I cannot make the " ] " symbol. Really frustrating in all code languages I use :confused: imagine having to copy+paste it everytime.
I guess this is unworkable but I wanted to ask anyway.

They default key settings file is uneditable so I tried to overide it in my default key settings file with an empty command name…tried to make it do nothing but that didnt work either.

Thank you for any answer:)

1 Like

#2

Preferences -> Key Bindings User and add this:

{ "keys": "ctrl+alt+p"], "command": "noop" }

This should do it.

0 Likes

#3

it disables the hotkey yes,but still overrides my keyboard layout and even my ahk script i tried to write to see if that worked

0 Likes

#4

You could also set the key to do whatever you need (it sounds crazy, but hey, it does the job!)

0 Likes

#5

[quote=“iamntz”]You could also set the key to do whatever you need (it sounds crazy, but hey, it does the job!)

[/quote]

godlike! Thats what i needed and tried to do thrue autohotkey :stuck_out_tongue: but I had to little knowledge about the “sublime key language” (dunno what to call it)

| feel alittle ashamed now I did not do more research abote how u could write commands.

It sure did the job:D

0 Likes

#6

Don’t worry, enjoy it!

(„sublime language” is called json in this case)

0 Likes

#7

You may use this http://stackoverflow.com/a/37060993/4934640 to disable any key from any package.
It is good because is update proof. For the default keys, create a package within the same name as the default package keys, removing the keys you do not want to.

0 Likes