summaryrefslogtreecommitdiff
path: root/src/app.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.rs')
-rw-r--r--src/app.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/app.rs b/src/app.rs
index fec2135..87da612 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -85,10 +85,9 @@ impl App {
fn handle_key_event(&mut self, event: KeyEvent) {
let focus = { GlobalState::instance().active_window };
- let op = GlobalKeyMap::handle(event);
+ let populate = GlobalKeyMap::handle(event);
-
- if op.unwrap_or(true) {
+ if populate {
match focus {
Window::View => self.view.handle_key_event(event),
Window::Editor => self.editor.handle_key_event(event),