From 2fcf9b678d0f154b2d41aa5fafa25aaa73ec7f17 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Mon, 1 Jun 2026 03:56:48 +0300 Subject: feat: add configurable right-click passthrough refs #148 --- src/app/state.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/app/state.rs') diff --git a/src/app/state.rs b/src/app/state.rs index 9466fcce..1584bc19 100644 --- a/src/app/state.rs +++ b/src/app/state.rs @@ -31,6 +31,12 @@ pub(crate) struct SelectionAutoscroll { pub last_mouse_screen_row: u16, pub inner_rect: Rect, } + +#[derive(Clone)] +pub(crate) struct RightClickPassthroughGesture { + pub pane_info: PaneInfo, + pub modifiers: KeyModifiers, +} use crate::terminal_theme::TerminalTheme; use crate::workspace::Workspace; @@ -1238,6 +1244,8 @@ pub struct AppState { /// Capture mouse input for Herdr's own mouse UI. When false, Herdr only /// captures mouse while the focused pane app requests mouse reporting. pub mouse_capture: bool, + pub right_click_passthrough_modifiers: Option, + pub right_click_passthrough: Option, pub redraw_on_focus_gained: bool, pub mouse_scroll_lines: usize, pub confirm_close: bool, @@ -1548,6 +1556,8 @@ impl AppState { sidebar_section_split: 0.5, agent_panel_scope: AgentPanelScope::AllWorkspaces, mouse_capture: true, + right_click_passthrough_modifiers: None, + right_click_passthrough: None, redraw_on_focus_gained: true, mouse_scroll_lines: crate::config::DEFAULT_MOUSE_SCROLL_LINES, confirm_close: true, -- cgit v1.2.3