GhostTextKeyHandler

Trait GhostTextKeyHandler 

Source
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§

Source

fn handle_tab(&mut self) -> Option<String>

Handle Tab key press (accept ghost text)

Source

fn handle_escape(&mut self)

Handle Escape key press (dismiss ghost text)

Provided Methods§

Source

fn handle_character_input(&mut self, _char: char)

Handle character input (update ghost text)

Implementors§