Home Download Buy Blog Forum Support

Is it possible to use the Windows key in a key binding?

Is it possible to use the Windows key in a key binding?

Postby awgy on Wed Feb 23, 2011 7:18 pm

Quick question from a Sublime newcomer: is it possible to use the Windows key in a key binding? I'm a long-time Mac user, and I'm needing to do some work on Windows 7. I'm using an Apple keyboard on Windows and I keep trying to use ⌘A to select all text (along with others like ⌘C, ⌘V, ⌘X, etc.). Since ⌘ acts as the Windows key, I'd like to set up Win+A and so on within Sublime, if possible. Anyone have any ideas?
awgy
 
Posts: 2
Joined: Wed Feb 23, 2011 7:12 pm

Re: Is it possible to use the Windows key in a key binding?

Postby jps on Wed Feb 23, 2011 9:18 pm

Yep: Just use "super" as the modifier name, for example:

Code: Select all
   { "keys": ["super+a"], "command": "select_all" }
jps
Site Admin
 
Posts: 3071
Joined: Wed Mar 19, 2008 12:33 pm

Re: Is it possible to use the Windows key in a key binding?

Postby bphunter1972 on Thu Jul 31, 2014 7:31 pm

But what about for Linux? Using super+ as a modifier there doesn't seem to have any affect when using Linux with a Microsoft or Apple keyboard. Does the Linux keymap even support 'super'?
bphunter1972
 
Posts: 16
Joined: Mon Mar 25, 2013 5:02 am
Location: San Jose, CA USA


Return to General Discussion

Who is online

Users browsing this forum: Jim and 23 guests