mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
GlobalKeymap favor most recently declared bindings in case of tie
Just like in CSS, when multiple equally-specific selectors match an element, we favor the most recently declared one, so keybindings cascade.
This commit is contained in:
@@ -10,7 +10,7 @@ class GlobalKeymap
|
||||
@bindingSets = []
|
||||
|
||||
bindKeys: (selector, bindings) ->
|
||||
@bindingSets.push(new BindingSet(selector, bindings))
|
||||
@bindingSets.unshift(new BindingSet(selector, bindings))
|
||||
|
||||
handleKeyEvent: (event) ->
|
||||
currentNode = $(event.target)
|
||||
|
||||
Reference in New Issue
Block a user