Enum gabelstaplerwm::wm::config::Mode
[−]
[src]
pub enum Mode { Normal, Setup, }
All keyboard modes used by gabelstaplerwm
-
A mode represents the active set of keybindings and/or their functionality. This works like the vim editor: different keybindings get triggered in different modes, even if the same keys are pressed.
Limitations
Be aware that currently, gabelstaplerwm
grabs the key combinations
globally during setup. This allows for overlapping keybindings in different
modes, but passing a key combination once grabbed to apps depending on mode
is currently impossible. This can be lifted in the future, if we decide to
regrab on every mode change, but that's a rather expensive operation, given
the currrent, HashMap
-based design.
Variants
Normal
normal mode doing normal stuff
Setup
setup mode to edit tagsets (unused in default config)
Trait Implementations
impl Clone for Mode
[src]
fn clone(&self) -> Mode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for Mode
[src]
impl Debug for Mode
[src]
impl PartialEq for Mode
[src]
fn eq(&self, __arg_0: &Mode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for Mode
[src]
impl Hash for Mode
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more