diff --git a/lapce-app/src/keypress.rs b/lapce-app/src/keypress.rs index 78a6753c..a22b4604 100644 --- a/lapce-app/src/keypress.rs +++ b/lapce-app/src/keypress.rs @@ -192,7 +192,12 @@ fn load_commands(&mut self) { } for (_, cmd) in self.commands.iter() { - if !self.command_keymaps.contains_key(cmd.kind.str()) { + if self + .command_keymaps + .get(cmd.kind.str()) + .map(|x| x.is_empty()) + .unwrap_or(true) + { commands_without_keymap.push(cmd.clone()); } }