Overwrite global Windows hotkeys to hotkey of application
Posted: 16 Nov 2016, 06:16
Briefly
How I can disable global Windows hotkey in application and instead it hotkey for command of these application?
Detail
I work in Windows 10 in Sublime Text, path to Sublime Text exe file is E:\Sublime Text 3. For example, I want to set shortcut LWin+2 for copy command. I make a shortcut in Sublime Text settings:
But my shortcut not work, because LWin+2 is Global Windows shortcut.
Did not help
I read page Overriding or disabling hotkeys.
But if I press LWin+2, my shortcut also not worked for me.
Do not offer
It's worked for me, but copy command only for example. In real I need shortcuts without redirects to other shortcuts.
Thanks.
How I can disable global Windows hotkey in application and instead it hotkey for command of these application?
Detail
I work in Windows 10 in Sublime Text, path to Sublime Text exe file is E:\Sublime Text 3. For example, I want to set shortcut LWin+2 for copy command. I make a shortcut in Sublime Text settings:
Code: Select all
{
"keys": ["super+2"],
"command": "copy"
},
Did not help
I read page Overriding or disabling hotkeys.
- #2::return disable LWin+2, but I can not enable these shortcut for Sublime Text commands.
- I try code:
Code: Select all
$#2::
IfWinActive ahk_class Notepad
return
Send #2
return
Do not offer
Code: Select all
$#2::
IfWinActive ahk_class Notepad
return
Send ^c
return
Thanks.