[][src]Trait penrose::draw::widget::KeyboardControlled

pub trait KeyboardControlled {
    pub fn handle_keypress(&mut self, k: KeyPress) -> Result<Option<KeyPress>>;
}

Something that can respond to user KeyPress events

Required methods

pub fn handle_keypress(&mut self, k: KeyPress) -> Result<Option<KeyPress>>[src]

Process the given KeyPress

Should return Ok(None) if the KeyPress has been handled and no longer propagated, or Ok(Some(k)) if further processing is possible.

Loading content...

Implementors

impl KeyboardControlled for InputBox[src]

impl KeyboardControlled for LinesWithSelection[src]

Loading content...