pub enum PaneKeymapPrecedence {
PaneManagerFirst,
ApplicationFirst,
}Expand description
Conflict precedence between application-level keymaps and the pane manager.
Variants§
PaneManagerFirst
The pane manager wins conflicts while it holds focus (default). Apps
must opt specific keys out via PaneKeymapPrecedence::ApplicationFirst
or by not binding them to pane commands.
ApplicationFirst
The application wins conflicts (e.g. for globally reserved shortcuts).
Implementations§
Source§impl PaneKeymapPrecedence
impl PaneKeymapPrecedence
Sourcepub const fn resolve(self, app_bound: bool, pane_bound: bool) -> PaneKeymapOwner
pub const fn resolve(self, app_bound: bool, pane_bound: bool) -> PaneKeymapOwner
Resolve which layer owns a key given whether each layer binds it.
Trait Implementations§
Source§impl Clone for PaneKeymapPrecedence
impl Clone for PaneKeymapPrecedence
Source§fn clone(&self) -> PaneKeymapPrecedence
fn clone(&self) -> PaneKeymapPrecedence
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PaneKeymapPrecedence
Source§impl Debug for PaneKeymapPrecedence
impl Debug for PaneKeymapPrecedence
Source§impl Default for PaneKeymapPrecedence
impl Default for PaneKeymapPrecedence
Source§fn default() -> PaneKeymapPrecedence
fn default() -> PaneKeymapPrecedence
Returns the “default value” for a type. Read more
impl Eq for PaneKeymapPrecedence
Source§impl PartialEq for PaneKeymapPrecedence
impl PartialEq for PaneKeymapPrecedence
Source§fn eq(&self, other: &PaneKeymapPrecedence) -> bool
fn eq(&self, other: &PaneKeymapPrecedence) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PaneKeymapPrecedence
Auto Trait Implementations§
impl Freeze for PaneKeymapPrecedence
impl RefUnwindSafe for PaneKeymapPrecedence
impl Send for PaneKeymapPrecedence
impl Sync for PaneKeymapPrecedence
impl Unpin for PaneKeymapPrecedence
impl UnsafeUnpin for PaneKeymapPrecedence
impl UnwindSafe for PaneKeymapPrecedence
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