reverse keymap overlay

pull/8675/merge^2
mattwparas 2023-09-14 17:50:31 -07:00
parent db3e9ed31d
commit 6a9d0b3c64
1 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,8 @@ impl ScriptingEngine {
pub fn get_keybindings() -> Option<HashMap<Mode, KeyTrie>> {
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()) {
map.extend(keybindings);
}