Focus command mode from shortcut

This commit is contained in:
2026-05-07 20:57:53 -04:00
parent 9c5f93bcb8
commit 4d50946072
3 changed files with 29 additions and 4 deletions
+5 -2
View File
@@ -12,6 +12,7 @@ actions!(
[
CloseCurrentTab,
FocusAddressBar,
FocusCommandMode,
OpenDownloads,
OpenNewTab,
Quit,
@@ -40,8 +41,8 @@ fn main() {
KeyBinding::new("ctrl-shift-t", RestoreClosedTab, None),
KeyBinding::new("cmd-shift-f", ToggleFavoriteTab, None),
KeyBinding::new("ctrl-shift-f", ToggleFavoriteTab, None),
KeyBinding::new("cmd-shift-p", TogglePinnedTab, None),
KeyBinding::new("ctrl-shift-p", TogglePinnedTab, None),
KeyBinding::new("cmd-shift-p", FocusCommandMode, None),
KeyBinding::new("ctrl-shift-p", FocusCommandMode, None),
KeyBinding::new("cmd-shift-]", SelectNextTab, None),
KeyBinding::new("ctrl-tab", SelectNextTab, None),
KeyBinding::new("cmd-shift-[", SelectPreviousTab, None),
@@ -62,6 +63,8 @@ fn main() {
items: vec![
MenuItem::action("New Tab", OpenNewTab),
MenuItem::separator(),
MenuItem::action("Command Mode", FocusCommandMode),
MenuItem::separator(),
MenuItem::action("Close Tab", CloseCurrentTab),
MenuItem::separator(),
MenuItem::action("Restore Closed Tab", RestoreClosedTab),