Taylan
Taylan

Reputation: 3157

Sublime Text 2 Key Bindings - Is there any way to detect left/right modifier keys?

Is it possible to make Left Alt+A and Right Alt+A do different things? And of course, other modifier keys.

If not, maybe the following idea would work? If AppleScript, Python, Ruby, Perl etc. can detect left/right modifiers I can set complicated key bindings in sublime text (like ["cmd+ctrl+shift+alt+a", "cmd+ctrl+shift+alt+a"]) and send those keystrokes with AppleScript or Automator?

Upvotes: 1

Views: 1292

Answers (1)

Autio
Autio

Reputation: 327

Yes, Sublime Text 2 does recognise right alt and left alt as separate modifiers.

Just refer to key bindings section of the documentation for the full rules: http://www.sublimetext.com/docs/key-bindings

Upvotes: 1

Related Questions