WIP: Change to matches to vec
This commit is contained in:
parent
afe9ab9d8c
commit
8d94de8eb2
3 changed files with 14 additions and 10 deletions
|
@ -1524,6 +1524,13 @@ impl MutableAppContext {
|
|||
|
||||
pub fn dispatch_keystroke(&mut self, window_id: usize, keystroke: &Keystroke) -> bool {
|
||||
if let Some(focused_view_id) = self.focused_view_id(window_id) {
|
||||
// For each view in self
|
||||
// - Get it's keymap context
|
||||
// - Try to execute keybinding
|
||||
|
||||
// For us, get out dispatch path
|
||||
// - ONLY execute for that terminal path
|
||||
|
||||
let dispatch_path = self
|
||||
.ancestors(window_id, focused_view_id)
|
||||
.map(|view_id| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue