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§
source§impl Clone for HandleControl
impl Clone for HandleControl
source§fn clone(&self) -> HandleControl
fn clone(&self) -> HandleControl
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HandleControl
impl Debug for HandleControl
source§impl PartialEq for HandleControl
impl PartialEq for HandleControl
impl Copy for HandleControl
impl Eq for HandleControl
impl StructuralPartialEq for HandleControl
Auto Trait Implementations§
impl Freeze for HandleControl
impl RefUnwindSafe for HandleControl
impl Send for HandleControl
impl Sync for HandleControl
impl Unpin for HandleControl
impl UnwindSafe for HandleControl
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)