diff --git a/assets/keymaps/default.json b/assets/keymaps/default.json index 4ea6b22f61..0afc7f59cd 100644 --- a/assets/keymaps/default.json +++ b/assets/keymaps/default.json @@ -456,7 +456,7 @@ } }, { - "context": "Dock > Pane", + "context": "Pane && docked", "bindings": { "shift-escape": "dock::HideDock", "cmd-escape": "dock::RemoveTabFromDock" diff --git a/crates/gpui/src/keymap_matcher.rs b/crates/gpui/src/keymap_matcher.rs index ca5b5265ce..9b05c2be5a 100644 --- a/crates/gpui/src/keymap_matcher.rs +++ b/crates/gpui/src/keymap_matcher.rs @@ -89,7 +89,6 @@ impl KeymapMatcher { self.contexts .extend(dispatch_path.iter_mut().map(|e| std::mem::take(&mut e.1))); - dbg!(&self.contexts); // Find the bindings which map the pending keystrokes and current context for (i, (view_id, _)) in dispatch_path.iter().enumerate() { // Don't require pending view entry if there are no pending keystrokes @@ -121,8 +120,6 @@ impl KeymapMatcher { } } - dbg!(&matched_bindings); - if !any_pending { self.clear_pending(); } diff --git a/crates/terminal_view/src/terminal_view.rs b/crates/terminal_view/src/terminal_view.rs index 9907a65cdf..7400950c3b 100644 --- a/crates/terminal_view/src/terminal_view.rs +++ b/crates/terminal_view/src/terminal_view.rs @@ -483,9 +483,7 @@ impl View for TerminalView { } if mode.contains(TermMode::APP_KEYPAD) { context.add_identifier("DECPAM"); - } - //Note the ! here - if !mode.contains(TermMode::APP_KEYPAD) { + } else { context.add_identifier("DECPNM"); } if mode.contains(TermMode::SHOW_CURSOR) {