#[cfg(test)]
mod tests {
use crate::shell::{AppShell, ShellConfig};
use crate::input::InputEvent;
use crate::palette::PaletteState;
use ftui_core::event::{KeyCode, Modifiers};
#[test]
fn repro_super_modifier_leaks_into_palette() {
let mut shell = AppShell::new(ShellConfig::default());
let open = InputEvent::Key(
KeyCode::Char('p'),
Modifiers::CTRL,
);
shell.handle_input(&open);
assert_eq!(shell.palette.state(), &PaletteState::Open);
let cmd_a = InputEvent::Key(
KeyCode::Char('a'),
Modifiers::SUPER,
);
shell.handle_input(&cmd_a);
assert_eq!(shell.palette.query(), "", "Super+A should not insert text");
}
}