Sublime Forum

[Question] Can I overwrite system Windows 10 hotkeys?

#1

Briefly

I can not overwrite system Windows 10 hotkeys.

Detail

In Windows 10 we have many native hotkeys. I not use most of them, I want bind native hotkeys for Sublime Text commands. I add in User/Default (Windows).sublime-keymap these lines:

{
    "keys": ["super+2"],
    "command": "paste"
},

But if I press Super+2, native Windows command, not Sublime Text command run for me.

Examples on other apps

AutoHotkey overwrite native Windows 10 shortcuts, for example:

; Ctrl+Super+F4 — $
^#F4::send {U+0024}

If I press Ctrl+Super+F4, I run AutoHotkey command, not native Windows command.

Thanks.

0 Likes

#2

you might be able to just disable the Windows hotkeys completely, so that ST can use them:

The instructions relate to Windows 7, but maybe it’s the same for 10:

Disable Windows Hotkeys

  1. Type gpedit.msc in the Start menu’s search box and then press Enter.
  2. Navigate to User Configuration, Administrative Templates, Windows Components, and then select Windows Explorer in the left column of the Group Policy editor.
  3. Double-click Turn off Windows+X Hotkeys in the Settings section of the Group Policy editor.
  4. Select Enable and then click OK to save the changes.

Or:

1 Like

#3

This program may help.

0 Likes

#4

@kingkeith, Blade Might solution worked for me.

  • It disable default Windows commands in all applications.
  • No something unexpected Windows actions, when I press my hotkeys.

Thanks.

0 Likes