pub enum Key {
Show 26 variants
Char(char),
Esc,
Enter,
Backspace,
Up,
Down,
Left,
Right,
Tab,
Backtab,
CtrlD,
CtrlR,
CtrlO,
CtrlSpace,
CtrlN,
CtrlP,
CtrlY,
CtrlE,
CtrlW,
CtrlX,
CtrlU,
CtrlF,
CtrlB,
CtrlCaret,
CtrlV,
CtrlL,
}Expand description
Normalized editor keys for admitted semantic input. Physical frontend input retains its modifiers until the engine selects its owner.
Variants§
Char(char)
Esc
Enter
Backspace
Up
Down
Left
Right
Tab
Backtab
CtrlD
Replace picker: exclude the row’s whole file (vscode’s toggle).
CtrlR
CtrlO
vim’s jump-back (ctrl-i forward is Tab in a terminal).
CtrlSpace
ctrl-space: query suggestions in a query field (0051 R02).
CtrlN
Insert completion selection/acceptance; fields retain their own keys.
CtrlP
CtrlY
CtrlE
CtrlW
CtrlX
Replace picker: exclude/include the selected match (0007 §2).
CtrlU
vim ctrl-u/ctrl-f/ctrl-b: half/full page up.
CtrlF
CtrlB
CtrlCaret
vim ctrl-^: alternate buffer.
CtrlV
vim ctrl-v: visual block mode.
CtrlL
vim ctrl-l: force a full terminal repaint (desync recovery).
Trait Implementations§
impl Copy for Key
Source§impl<'de> Deserialize<'de> for Key
impl<'de> Deserialize<'de> for Key
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnsafeUnpin for Key
impl UnwindSafe for Key
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