pub enum Event {
Text(Vec<u16>),
Backspace,
Escape,
Manual,
Reverse,
Finish,
}Expand description
Input supplied by the native controller, without document offsets.
Variants§
Text(Vec<u16>)
Text units the key would insert. A single letter, or in English mode a single provisional unit, starts or continues a word; a single Space takes an owned word to its boundary; anything else finishes an owned word and goes to the host.
Backspace
Delete the last owned unit; at the boundary it finishes the word and goes to the host.
Escape
Restore the original and finish if a receipt exists; otherwise finish as typed and pass.
Manual
Convert the owned word key by key to the other layout; a conversion sets explicit intent.
Reverse
Restore the receipt’s text exactly while the same word is owned, with explicit intent.
Finish
Finish the owned word as it stands and let the host handle the event.
Trait Implementations§
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more