pub trait GhostTextKeyHandler: Send + Sync {
// Required methods
fn handle_tab(&mut self) -> Option<String>;
fn handle_escape(&mut self);
// Provided method
fn handle_character_input(&mut self, _char: char) { ... }
}Expand description
Key handler for ghost text acceptance and dismissal
Required Methods§
Sourcefn handle_tab(&mut self) -> Option<String>
fn handle_tab(&mut self) -> Option<String>
Handle Tab key press (accept ghost text)
Sourcefn handle_escape(&mut self)
fn handle_escape(&mut self)
Handle Escape key press (dismiss ghost text)
Provided Methods§
Sourcefn handle_character_input(&mut self, _char: char)
fn handle_character_input(&mut self, _char: char)
Handle character input (update ghost text)