Enum pc_keyboard::HandleControl
source · [−]pub enum HandleControl {
MapLettersToUnicode,
Ignore,
}
Expand description
Options for how we can handle what happens when the Ctrl key is held down and a letter is pressed.
Variants
MapLettersToUnicode
If either Ctrl key is held down, convert the letters A through Z into Unicode chars U+0001 through U+001A. If the Ctrl keys are not held down, letters go through normally.
Ignore
Don’t do anything special - send through the Ctrl key up/down events, and leave the letters as letters.
Trait Implementations
sourceimpl Clone for HandleControl
impl Clone for HandleControl
sourcefn clone(&self) -> HandleControl
fn clone(&self) -> HandleControl
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for HandleControl
impl Debug for HandleControl
sourceimpl PartialEq<HandleControl> for HandleControl
impl PartialEq<HandleControl> for HandleControl
sourcefn eq(&self, other: &HandleControl) -> bool
fn eq(&self, other: &HandleControl) -> bool
impl Copy for HandleControl
impl Eq for HandleControl
impl StructuralEq for HandleControl
impl StructuralPartialEq for HandleControl
Auto Trait Implementations
impl RefUnwindSafe for HandleControl
impl Send for HandleControl
impl Sync for HandleControl
impl Unpin for HandleControl
impl UnwindSafe for HandleControl
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more