pub struct FileDialogKeyBindings {
pub submit: Vec<KeyBinding>,
pub cancel: Vec<KeyBinding>,
pub parent: Vec<KeyBinding>,
pub back: Vec<KeyBinding>,
pub forward: Vec<KeyBinding>,
pub reload: Vec<KeyBinding>,
pub new_folder: Vec<KeyBinding>,
pub edit_path: Vec<KeyBinding>,
pub home_edit_path: Vec<KeyBinding>,
pub selection_up: Vec<KeyBinding>,
pub selection_down: Vec<KeyBinding>,
pub select_all: Vec<KeyBinding>,
}
Expand description
Stores the keybindings used for the file dialog.
Fields§
§submit: Vec<KeyBinding>
Shortcut to submit the current action or enter the currently selected directory
cancel: Vec<KeyBinding>
Shortcut to cancel the current action
parent: Vec<KeyBinding>
Shortcut to open the parent directory
back: Vec<KeyBinding>
Shortcut to go back
forward: Vec<KeyBinding>
Shortcut to go forward
reload: Vec<KeyBinding>
Shortcut to reload the file dialog
new_folder: Vec<KeyBinding>
Shortcut to open the dialog to create a new folder
edit_path: Vec<KeyBinding>
Shortcut to text edit the current path
home_edit_path: Vec<KeyBinding>
Shortcut to switch to the home directory and text edit the current path
selection_up: Vec<KeyBinding>
Shortcut to move the selection one item up
selection_down: Vec<KeyBinding>
Shortcut to move the selection one item down
select_all: Vec<KeyBinding>
Shortcut to select every item when the dialog is in DialogMode::SelectMultiple
mode
Implementations§
Source§impl FileDialogKeyBindings
impl FileDialogKeyBindings
Sourcepub fn any_pressed(
ctx: &Context,
keybindings: &Vec<KeyBinding>,
suppress_if_any_focused: bool,
) -> bool
pub fn any_pressed( ctx: &Context, keybindings: &Vec<KeyBinding>, suppress_if_any_focused: bool, ) -> bool
Checks whether any of the given keybindings is pressed.
Trait Implementations§
Source§impl Clone for FileDialogKeyBindings
impl Clone for FileDialogKeyBindings
Source§fn clone(&self) -> FileDialogKeyBindings
fn clone(&self) -> FileDialogKeyBindings
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FileDialogKeyBindings
impl Debug for FileDialogKeyBindings
Auto Trait Implementations§
impl Freeze for FileDialogKeyBindings
impl RefUnwindSafe for FileDialogKeyBindings
impl Send for FileDialogKeyBindings
impl Sync for FileDialogKeyBindings
impl Unpin for FileDialogKeyBindings
impl UnwindSafe for FileDialogKeyBindings
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