pub struct PlatformHotkeyConfiguration {Show 23 fields
pub command_modifiers: KeyModifiers,
pub whole_word_text_action_modifiers: KeyModifiers,
pub selection_modifiers: KeyModifiers,
pub copy: Vec<KeyGesture>,
pub cut: Vec<KeyGesture>,
pub paste: Vec<KeyGesture>,
pub undo: Vec<KeyGesture>,
pub redo: Vec<KeyGesture>,
pub select_all: Vec<KeyGesture>,
pub move_cursor_to_the_start_of_line: Vec<KeyGesture>,
pub move_cursor_to_the_end_of_line: Vec<KeyGesture>,
pub move_cursor_to_the_start_of_document: Vec<KeyGesture>,
pub move_cursor_to_the_end_of_document: Vec<KeyGesture>,
pub move_cursor_to_the_start_of_line_with_selection: Vec<KeyGesture>,
pub move_cursor_to_the_end_of_line_with_selection: Vec<KeyGesture>,
pub move_cursor_to_the_start_of_document_with_selection: Vec<KeyGesture>,
pub move_cursor_to_the_end_of_document_with_selection: Vec<KeyGesture>,
pub open_context_menu: Vec<KeyGesture>,
pub back: Vec<KeyGesture>,
pub page_up: Vec<KeyGesture>,
pub page_down: Vec<KeyGesture>,
pub page_right: Vec<KeyGesture>,
pub page_left: Vec<KeyGesture>,
}Expand description
The key gestures of the platform for common editing and navigation commands.
Fields§
§command_modifiers: KeyModifiers§whole_word_text_action_modifiers: KeyModifiers§selection_modifiers: KeyModifiers§copy: Vec<KeyGesture>§cut: Vec<KeyGesture>§paste: Vec<KeyGesture>§undo: Vec<KeyGesture>§redo: Vec<KeyGesture>§select_all: Vec<KeyGesture>§move_cursor_to_the_start_of_line: Vec<KeyGesture>§move_cursor_to_the_end_of_line: Vec<KeyGesture>§move_cursor_to_the_start_of_document: Vec<KeyGesture>§move_cursor_to_the_end_of_document: Vec<KeyGesture>§move_cursor_to_the_start_of_line_with_selection: Vec<KeyGesture>§move_cursor_to_the_end_of_line_with_selection: Vec<KeyGesture>§move_cursor_to_the_start_of_document_with_selection: Vec<KeyGesture>§move_cursor_to_the_end_of_document_with_selection: Vec<KeyGesture>§back: Vec<KeyGesture>§page_up: Vec<KeyGesture>§page_down: Vec<KeyGesture>§page_right: Vec<KeyGesture>§page_left: Vec<KeyGesture>Implementations§
Source§impl PlatformHotkeyConfiguration
impl PlatformHotkeyConfiguration
Sourcepub fn new(command_modifiers: KeyModifiers) -> Self
pub fn new(command_modifiers: KeyModifiers) -> Self
Creates a configuration for the given command modifiers, with Shift as the selection modifier and Control as the whole-word modifier.
Sourcepub fn with_modifiers(
command_modifiers: KeyModifiers,
selection_modifiers: KeyModifiers,
whole_word_text_action_modifiers: KeyModifiers,
) -> Self
pub fn with_modifiers( command_modifiers: KeyModifiers, selection_modifiers: KeyModifiers, whole_word_text_action_modifiers: KeyModifiers, ) -> Self
Creates a configuration for the given modifiers.
Trait Implementations§
Source§impl Clone for PlatformHotkeyConfiguration
impl Clone for PlatformHotkeyConfiguration
Source§impl Debug for PlatformHotkeyConfiguration
impl Debug for PlatformHotkeyConfiguration
impl StructuralPartialEq for PlatformHotkeyConfiguration
Auto Trait Implementations§
impl Freeze for PlatformHotkeyConfiguration
impl RefUnwindSafe for PlatformHotkeyConfiguration
impl Send for PlatformHotkeyConfiguration
impl Sync for PlatformHotkeyConfiguration
impl Unpin for PlatformHotkeyConfiguration
impl UnsafeUnpin for PlatformHotkeyConfiguration
impl UnwindSafe for PlatformHotkeyConfiguration
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more