pub enum Chord {
CtrlV,
CtrlShiftV,
ShiftInsert,
}Expand description
Key combination used to trigger a paste in the target application.
Variants§
CtrlV
The near-universal paste binding.
CtrlShiftV
Terminals, where Ctrl+V is a control character or unbound.
ShiftInsert
Legacy paste binding, still honored by some older Win32 software.
Implementations§
Source§impl Chord
impl Chord
Sourcepub fn for_exe(exe: &str) -> Self
pub fn for_exe(exe: &str) -> Self
The chord most likely to paste in the given application.
Every entry here is verified against the real application (see examples/real_app_test.rs),
not taken from documentation. VS Code was previously listed as needing Shift+Insert on the
strength of a vendor support page; testing showed Shift+Insert does nothing in the editor
and Ctrl+V works. That claim appears to describe the integrated terminal, not the editor.
Trait Implementations§
impl Copy for Chord
impl Eq for Chord
impl StructuralPartialEq for Chord
Auto Trait Implementations§
impl Freeze for Chord
impl RefUnwindSafe for Chord
impl Send for Chord
impl Sync for Chord
impl Unpin for Chord
impl UnsafeUnpin for Chord
impl UnwindSafe for Chord
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