KeyBindings

Trait KeyBindings 

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

Source

fn get_current(&self) -> HashMap<KeySequence, KeyAction>

Retrieves current bindings.

Source

fn bind(&mut self, seq: KeySequence, action: KeyAction) -> Result<(), Error>

Updates a binding.

Implementors§