diff options
Diffstat (limited to 'zellij-utils/src/input/mod.rs')
-rw-r--r-- | zellij-utils/src/input/mod.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/zellij-utils/src/input/mod.rs b/zellij-utils/src/input/mod.rs index 1c95f348b..1d30841f3 100644 --- a/zellij-utils/src/input/mod.rs +++ b/zellij-utils/src/input/mod.rs @@ -113,7 +113,15 @@ mod not_wasm { KeyCode::Tab => Key::BackTab, // TODO: ??? KeyCode::Delete => Key::Delete, KeyCode::Insert => Key::Insert, - KeyCode::Function(n) => Key::F(n), + KeyCode::Function(n) => { + if modifiers.contains(Modifiers::ALT) { + Key::AltF(n) + } else if modifiers.contains(Modifiers::CTRL) { + Key::CtrlF(n) + } else { + Key::F(n) + } + }, KeyCode::Escape => Key::Esc, KeyCode::Enter => Key::Char('\n'), _ => Key::Esc, // there are other keys we can implement here, but we might need additional terminal support to implement them, not just exhausting this enum |