pub enum PanelKeyboard {
None,
OnDemand,
Exclusive,
}Expand description
Whether a panel takes the keyboard.
Variants§
None
Never: a click leaves focus where it was. A bar is this.
OnDemand
When clicked, like an application window.
Exclusive
Takes it on mapping: a launcher, a lock screen. Keys typed the moment
it appears are its, or
FocusRefused says the window
system would not hand it over.
Held while mapped only where
ShellCaps::PANEL_EXCLUSIVE_KEYBOARD
is set. Elsewhere the user can click another window and the panel
hears Focus with focused: false;
nothing takes the keyboard back, since that would fight the user and
the system’s foreground rules.
Trait Implementations§
Source§impl Clone for PanelKeyboard
impl Clone for PanelKeyboard
impl Copy for PanelKeyboard
Source§impl Debug for PanelKeyboard
impl Debug for PanelKeyboard
Source§impl Default for PanelKeyboard
impl Default for PanelKeyboard
impl Eq for PanelKeyboard
Source§impl Hash for PanelKeyboard
impl Hash for PanelKeyboard
Source§impl PartialEq for PanelKeyboard
impl PartialEq for PanelKeyboard
impl StructuralPartialEq for PanelKeyboard
Auto Trait Implementations§
impl Freeze for PanelKeyboard
impl RefUnwindSafe for PanelKeyboard
impl Send for PanelKeyboard
impl Sync for PanelKeyboard
impl Unpin for PanelKeyboard
impl UnsafeUnpin for PanelKeyboard
impl UnwindSafe for PanelKeyboard
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