Skip to content

Commit 0529da7

Browse files
committed
fix(tui): allow question mark to be typed in input field
Fixes bounty issue #1708 The '?' key was globally bound to show help, but in Input context (when typing in the input field), there was no override binding. This caused the help popup to appear instead of inserting the '?' character. Added an Input-context binding for '?' that returns KeyAction::None, allowing the character to be inserted normally when typing.
1 parent 8f839ec commit 0529da7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

cortex-tui/src/actions.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,12 @@ impl ActionMapper {
736736
KeyAction::SelectAll,
737737
"Select all",
738738
),
739+
// Allow '?' to be typed as a character (override global Help binding)
740+
KeyBinding::input(
741+
KeyEvent::new(KeyCode::Char('?'), KeyModifiers::NONE),
742+
KeyAction::None,
743+
"Insert ?",
744+
),
739745
]);
740746

741747
// === Chat context bindings ===

0 commit comments

Comments
 (0)