reverse keymap overlay

pull/8675/merge^2
mattwparas 1 year ago
parent db3e9ed31d
commit 6a9d0b3c64

@ -67,7 +67,8 @@ impl ScriptingEngine {
pub fn get_keybindings() -> Option<HashMap<Mode, KeyTrie>> { pub fn get_keybindings() -> Option<HashMap<Mode, KeyTrie>> {
let mut map = HashMap::new(); let mut map = HashMap::new();
for kind in PLUGIN_PRECEDENCE { // Overlay these in reverse, so the precedence applies correctly
for kind in PLUGIN_PRECEDENCE.iter().rev() {
if let Some(keybindings) = manual_dispatch!(kind, get_keybindings()) { if let Some(keybindings) = manual_dispatch!(kind, get_keybindings()) {
map.extend(keybindings); map.extend(keybindings);
} }

Loading…
Cancel
Save