1package entity
2
3// BuiltinGlobalShortcuts returns the standard browser shortcuts shared by every
4// keymap preset. Config defaults include them so users can rebind or disable
5// them, and config loading completes any that a config file omits (unless the
6// user already bound one of their keys). An action present with empty keys
7// stays disabled.
8func BuiltinGlobalShortcuts() map[string]ActionBinding {
9 return map[string]ActionBinding{
10 "open-omnibox": {Keys: []string{"ctrl+l"}, Desc: "Open omnibox"},
11 "open-find": {Keys: []string{"ctrl+f"}, Desc: "Find in page"},
12 "find-next": {Keys: []string{"f3", "ctrl+g"}, Desc: "Find next match"},
13 "find-prev": {Keys: []string{"shift+f3", "ctrl+shift+g"}, Desc: "Find previous match"},
14 "reload": {Keys: []string{"ctrl+r", "f5"}, Desc: "Reload page"},
15 "hard-reload": {Keys: []string{"ctrl+shift+r", "ctrl+f5"}, Desc: "Reload page bypassing cache"},
16 "open-devtools": {Keys: []string{"f12"}, Desc: "Open developer tools"},
17 "go-back": {Keys: []string{"ctrl+arrowleft"}, Desc: "Go back"},
18 "go-forward": {Keys: []string{"ctrl+arrowright"}, Desc: "Go forward"},
19 "zoom-in": {Keys: []string{"ctrl+plus", "ctrl+equal"}, Desc: "Zoom in"},
20 "zoom-out": {Keys: []string{"ctrl+minus"}, Desc: "Zoom out"},
21 "zoom-reset": {Keys: []string{"ctrl+0"}, Desc: "Reset zoom"},
22 "quit": {Keys: []string{"ctrl+q"}, Desc: "Quit"},
23 "toggle-fullscreen": {Keys: []string{"f11"}, Desc: "Toggle fullscreen"},
24 "copy-url": {Keys: []string{"ctrl+shift+c"}, Desc: "Copy current URL"},
25 "print-page": {Keys: []string{"ctrl+shift+p"}, Desc: "Print page"},
26 "session-manager": {Keys: []string{"ctrl+shift+s"}, Desc: "Open session manager"},
27 "focus-left": {Keys: []string{"alt+h", "alt+arrowleft"}, Desc: "Focus pane to the left"},
28 "focus-right": {Keys: []string{"alt+l", "alt+arrowright"}, Desc: "Focus pane to the right"},
29 "focus-up": {Keys: []string{"alt+k", "alt+arrowup"}, Desc: "Focus pane above"},
30 "focus-down": {Keys: []string{"alt+j", "alt+arrowdown"}, Desc: "Focus pane below"},
31 }
32}