use egui::{Key, KeyboardShortcut};
pub trait KeyboardShortcutExt {
fn conflicts_with_text_editing(&self) -> bool;
}
impl KeyboardShortcutExt for KeyboardShortcut {
fn conflicts_with_text_editing(&self) -> bool {
self.modifiers.is_none()
|| matches!(
self.logical_key,
Key::Space
| Key::ArrowLeft
| Key::ArrowRight
| Key::ArrowUp
| Key::ArrowDown
| Key::Home
| Key::End
)
}
}