Add Alt-Left and Alt-Right for history navigation
Common shortcuts.
This commit is contained in:
parent
6378d54f7b
commit
843997a0d8
2 changed files with 6 additions and 0 deletions
|
|
@ -44,6 +44,8 @@ pub struct Flags {
|
|||
pub enum Action {
|
||||
Copy,
|
||||
Cut,
|
||||
HistoryNext,
|
||||
HistoryPrevious,
|
||||
MoveToTrash,
|
||||
NewFile,
|
||||
NewFolder,
|
||||
|
|
@ -67,6 +69,8 @@ impl Action {
|
|||
match self {
|
||||
Action::Copy => Message::Copy(entity_opt),
|
||||
Action::Cut => Message::Cut(entity_opt),
|
||||
Action::HistoryNext => Message::TabMessage(None, tab::Message::GoNext),
|
||||
Action::HistoryPrevious => Message::TabMessage(None, tab::Message::GoPrevious),
|
||||
Action::MoveToTrash => Message::MoveToTrash(entity_opt),
|
||||
Action::NewFile => Message::NewFile(entity_opt),
|
||||
Action::NewFolder => Message::NewFolder(entity_opt),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue