summaryrefslogtreecommitdiff
path: root/src/app/runtime.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-07-15 03:58:07 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-07-15 04:02:14 +0300
commit2c7c8beb079c5fd58a2e53efd2058df050ad9f55 (patch)
tree6756f671dc728d915b1d6ebececa8cf7f70b66fb /src/app/runtime.rs
parent88370e1516182ab519d22a12fa82d5780a40fee6 (diff)
feat: add floating popup panes
refs #1125
Diffstat (limited to 'src/app/runtime.rs')
-rw-r--r--src/app/runtime.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/app/runtime.rs b/src/app/runtime.rs
index 6d63f139..cad49372 100644
--- a/src/app/runtime.rs
+++ b/src/app/runtime.rs
@@ -142,7 +142,7 @@ impl App {
let key_id = repeat_key_identity(&key);
match key.kind {
crossterm::event::KeyEventKind::Press => {
- if self.state.mode == Mode::Terminal {
+ if self.state.popup_pane.is_some() || self.state.mode == Mode::Terminal {
self.suppressed_repeat_keys.remove(&key_id);
} else {
self.suppressed_repeat_keys.insert(key_id);
@@ -151,7 +151,7 @@ impl App {
true
}
crossterm::event::KeyEventKind::Repeat => {
- if self.state.mode == Mode::Terminal
+ if (self.state.popup_pane.is_some() || self.state.mode == Mode::Terminal)
&& !self.suppressed_repeat_keys.contains(&key_id)
{
self.handle_key(key).await;
@@ -171,7 +171,7 @@ impl App {
true
}
crate::raw_input::RawInputEvent::Mouse(mouse) => {
- if self.state.mouse_capture {
+ if self.state.popup_pane.is_some() || self.state.mouse_capture {
self.handle_mouse(mouse);
} else {
self.state