diff options
Diffstat (limited to 'src/app.rs')
| -rw-r--r-- | src/app.rs | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -85,8 +85,10 @@ impl App { fn handle_key_event(&mut self, event: KeyEvent) { let focus = { GlobalState::instance().active_window }; + let op = GlobalKeyMap::handle(event); - if !GlobalKeyMap::handle(event) { + + if op.unwrap_or(true) { match focus { Window::View => self.view.handle_key_event(event), Window::Editor => self.editor.handle_key_event(event), |