Enum ShortcutAction
pub enum ShortcutAction {
Show 65 variants
Search,
WorkspaceOverview,
Lock,
QuickSettings,
ShortcutHelp,
FocusPreviousWindow,
FocusNextWindow,
PreviousTab,
NextTab,
TabMenu,
PreviousStrip,
NextStrip,
PreviousWorkspace,
NextWorkspace,
ToggleMaximize,
MaximizeWindow,
RestoreWindow,
DetachTab,
AttachTabLeft,
AttachTabRight,
MoveGroupLeft,
MoveGroupRight,
MoveGroupToPreviousStrip,
MoveGroupToNextStrip,
MoveGroupToPreviousDisplay,
MoveGroupToNextDisplay,
ResizeNarrower,
ResizeWider,
ReopenClosedTab,
FocusGroup1,
FocusGroup2,
FocusGroup3,
FocusGroup4,
FocusGroup5,
FocusGroup6,
FocusGroup7,
FocusGroup8,
FocusGroup9,
FocusStrip1,
FocusStrip2,
FocusStrip3,
FocusStrip4,
FocusStrip5,
FocusStrip6,
FocusStrip7,
FocusStrip8,
FocusStrip9,
OpenFiles,
OpenTerminal,
ClipboardHistory,
Notifications,
ToggleFullscreen,
ToggleMagnifier,
MagnifierZoomIn,
MagnifierZoomOut,
PowerMenu,
NextInputSource,
EmojiPicker,
AskAgent,
SaySomething,
ReportProblem,
DictationToggle,
DictationFinish,
DictationCancel,
ToggleFloat,
}Expand description
A desktop action a shortcut can run.
Variants§
Search
WorkspaceOverview
Lock
QuickSettings
ShortcutHelp
A physical question-mark press reports the shifted slash key plus Shift, so the default is that chord rather than a bare slash.
FocusPreviousWindow
FocusNextWindow
PreviousTab
NextTab
TabMenu
Show the focused tab’s shell context menu.
PreviousStrip
NextStrip
PreviousWorkspace
NextWorkspace
ToggleMaximize
MaximizeWindow
Maximize the focused window group; nothing when it already is.
RestoreWindow
Restore the focused window group from maximized; nothing when it is not maximized.
DetachTab
AttachTabLeft
AttachTabRight
MoveGroupLeft
MoveGroupRight
MoveGroupToPreviousStrip
Carry the focused window group, whole, into the strip above.
MoveGroupToNextStrip
Carry the focused window group, whole, into the strip below.
MoveGroupToPreviousDisplay
Move the focused window group onto the display to the left of its own (the previous one in reading order).
MoveGroupToNextDisplay
Move the focused window group onto the display to the right of its own (the next one in reading order). Super+Shift+arrows already reorder within a display; Ctrl widens the gesture to its neighbour.
ResizeNarrower
ResizeWider
ReopenClosedTab
Bring back the most recently closed tab in the current workspace.
FocusGroup1
Focus the Nth window group of the current strip (Ctrl+Super+1 … Ctrl+Super+9).
FocusGroup2
FocusGroup3
FocusGroup4
FocusGroup5
FocusGroup6
FocusGroup7
FocusGroup8
FocusGroup9
FocusStrip1
Go to the Nth strip of the workspace, counting from the top (Super+1 … Super+9).
FocusStrip2
FocusStrip3
FocusStrip4
FocusStrip5
FocusStrip6
FocusStrip7
FocusStrip8
FocusStrip9
OpenFiles
OpenTerminal
ClipboardHistory
Notifications
ToggleFullscreen
ToggleMagnifier
MagnifierZoomIn
MagnifierZoomOut
PowerMenu
NextInputSource
Switch to the next keyboard input source.
EmojiPicker
Open the emoji picker over the focused text field.
AskAgent
Ask an agent about what is selected in the focused window, in the quick composer seeded with that selection.
SaySomething
Say something beside the pointer, to the people in the window under it (cursor chat), wherever the keyboard is; a bare “/” opens it only where the focused widget takes no text.
ReportProblem
Point at what is not working and report it (the feedback picker).
DictationToggle
DictationFinish
DictationCancel
ToggleFloat
Lift the focused window above the desk, or put it back into its strip.
Implementations§
§impl ShortcutAction
impl ShortcutAction
pub fn serialize<__S>(
__self: &ShortcutAction,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
§impl<'de> ShortcutAction
impl<'de> ShortcutAction
pub fn deserialize<__D>(
__deserializer: __D,
) -> Result<ShortcutAction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl ShortcutAction
impl ShortcutAction
pub const ALL: [ShortcutAction; 65]
pub const ALL: [ShortcutAction; 65]
Every rebindable desktop action, in the order it is listed.
pub fn from_id(id: &str) -> Option<ShortcutAction>
pub fn from_id(id: &str) -> Option<ShortcutAction>
The action id names.
pub const fn action(self) -> Option<(&'static str, &'static str)>
pub const fn action(self) -> Option<(&'static str, &'static str)>
The action that does what this shortcut does, as the provider that publishes it and its id within that provider, when the shell publishes one.
This is the one table a chord and an action share: the overlay
host runs a chord by running this action, so a key, a palette
click and an agent’s invocation cannot drift into three
behaviours, and the shortcut guide, Settings and the palette
name the action beside the chord. A shortcut whose action the
shell does not publish yet is None, and its chord runs the
shell’s own implementation.
pub const fn home(self) -> ShortcutHome
pub const fn home(self) -> ShortcutHome
Which side of the desktop carries this shortcut out
(ShortcutHome): its own windows and strips, or the session
under them the device, its surfaces and its people.
pub const fn category(self) -> ShortcutCategory
pub const fn category(self) -> ShortcutCategory
What part of the desktop the shortcut belongs to; Settings groups by it.
§impl ShortcutAction
impl ShortcutAction
pub fn focus_group_index(self) -> Option<usize>
pub fn focus_group_index(self) -> Option<usize>
The strip position a FocusGroupN action selects, counting from 0.
pub fn focus_strip_index(self) -> Option<usize>
pub fn focus_strip_index(self) -> Option<usize>
The strip a FocusStripN action goes to, counting from 0 at the top.
Trait Implementations§
§impl Clone for ShortcutAction
impl Clone for ShortcutAction
§fn clone(&self) -> ShortcutAction
fn clone(&self) -> ShortcutAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for ShortcutAction
impl Debug for ShortcutAction
§impl<'de> Deserialize<'de> for ShortcutAction
impl<'de> Deserialize<'de> for ShortcutAction
§fn deserialize<D>(
deserializer: D,
) -> Result<ShortcutAction, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<ShortcutAction, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
§impl Hash for ShortcutAction
impl Hash for ShortcutAction
§impl Ord for ShortcutAction
impl Ord for ShortcutAction
§fn cmp(&self, other: &ShortcutAction) -> Ordering
fn cmp(&self, other: &ShortcutAction) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
§impl PartialEq for ShortcutAction
impl PartialEq for ShortcutAction
§impl PartialOrd for ShortcutAction
impl PartialOrd for ShortcutAction
§impl Serialize for ShortcutAction
impl Serialize for ShortcutAction
§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
impl Copy for ShortcutAction
impl Eq for ShortcutAction
impl StructuralPartialEq for ShortcutAction
Auto Trait Implementations§
impl Freeze for ShortcutAction
impl RefUnwindSafe for ShortcutAction
impl Send for ShortcutAction
impl Sync for ShortcutAction
impl Unpin for ShortcutAction
impl UnsafeUnpin for ShortcutAction
impl UnwindSafe for ShortcutAction
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more