mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Handle multi-keystroke keybinding
Previously for a binding like `meta-x meta-y` you had to hold down the meta key. This makes it possible to release the meta key between key presses.
This commit is contained in:
@@ -177,7 +177,10 @@ class Keymap
|
||||
multiKeystrokeStringForEvent: (event) ->
|
||||
currentKeystroke = @keystrokeStringForEvent(event)
|
||||
if @queuedKeystrokes
|
||||
@queuedKeystrokes + ' ' + currentKeystroke
|
||||
if currentKeystroke in Modifiers
|
||||
@queuedKeystrokes
|
||||
else
|
||||
@queuedKeystrokes + ' ' + currentKeystroke
|
||||
else
|
||||
currentKeystroke
|
||||
|
||||
|
||||
Reference in New Issue
Block a user