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§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
source§fn eq(&self, other: &HandleControl) -> bool
fn eq(&self, other: &HandleControl) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.