pub trait KeyBindings: Send {
// Required methods
fn get_current(&self) -> HashMap<KeySequence, KeyAction>;
fn bind(&mut self, seq: KeySequence, action: KeyAction) -> Result<(), Error>;
}
Expand description
Encapsulates the shell’s interaction with key bindings for input.
Required Methods§
Sourcefn get_current(&self) -> HashMap<KeySequence, KeyAction>
fn get_current(&self) -> HashMap<KeySequence, KeyAction>
Retrieves current bindings.