pub struct RegisteredShortcut {
pub key: String,
pub description: String,
pub plugin: String,
}Expand description
A keyboard shortcut declared by a native extension (e.g. "space" for
push-to-talk). The host records it so the TUI can route keys to it; the
owning plugin receives the key via its Input event handler.
key is a normalized key name ("space", "enter", "c", "f1")
matching the editor’s keybinding vocabulary.
Fields§
§key: String§description: String§plugin: StringThe owning extension’s display name (host-side only, for diagnostics).
Trait Implementations§
Source§impl Clone for RegisteredShortcut
impl Clone for RegisteredShortcut
Source§impl Debug for RegisteredShortcut
impl Debug for RegisteredShortcut
impl Eq for RegisteredShortcut
Source§impl PartialEq for RegisteredShortcut
impl PartialEq for RegisteredShortcut
impl StructuralPartialEq for RegisteredShortcut
Auto Trait Implementations§
impl Freeze for RegisteredShortcut
impl RefUnwindSafe for RegisteredShortcut
impl Send for RegisteredShortcut
impl Sync for RegisteredShortcut
impl Unpin for RegisteredShortcut
impl UnsafeUnpin for RegisteredShortcut
impl UnwindSafe for RegisteredShortcut
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.