fix(shortcuts): Ctrl+Arrow for navigation, Alt+Arrow for pane focus
- commit
- 6a8b220b8e5390d9afbd6606914f95e602c106fc
- author
- bnema · · 2026-01-06 18:08 UTC
- committer
- bnema · · 2026-01-06 19:04 UTC
- parent
- a0d51a2
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
1 file · +4 -2
M internal/ui/input/shortcuts.go +4 -2
| @@ -360,8 +360,8 @@ func (s *ShortcutSet) registerStandardShortcuts() { | |||
| 360 | 360 | s.Global[KeyBinding{uint(gdk.KEY_F5), ModNone}] = ActionReload | |
| 361 | 361 | s.Global[KeyBinding{uint(gdk.KEY_F5), ModCtrl}] = ActionHardReload | |
| 362 | 362 | s.Global[KeyBinding{uint(gdk.KEY_F12), ModNone}] = ActionOpenDevTools | |
| 363 | - | s.Global[KeyBinding{uint(gdk.KEY_Left), ModAlt}] = ActionGoBack | |
| 364 | - | s.Global[KeyBinding{uint(gdk.KEY_Right), ModAlt}] = ActionGoForward | |
| 363 | + | s.Global[KeyBinding{uint(gdk.KEY_Left), ModCtrl}] = ActionGoBack | |
| 364 | + | s.Global[KeyBinding{uint(gdk.KEY_Right), ModCtrl}] = ActionGoForward | |
| 365 | 365 | s.Global[KeyBinding{uint(gdk.KEY_plus), ModCtrl}] = ActionZoomIn | |
| 366 | 366 | s.Global[KeyBinding{uint(gdk.KEY_equal), ModCtrl}] = ActionZoomIn // Ctrl+= (no shift needed) | |
| 367 | 367 | s.Global[KeyBinding{uint(gdk.KEY_minus), ModCtrl}] = ActionZoomOut | |
| @@ -379,6 +379,8 @@ func (s *ShortcutSet) registerPaneNavigationShortcuts() { | |||
| 379 | 379 | s.Global[KeyBinding{uint(gdk.KEY_k), ModAlt}] = ActionFocusUp | |
| 380 | 380 | s.Global[KeyBinding{uint(gdk.KEY_j), ModAlt}] = ActionFocusDown | |
| 381 | 381 | ||
| 382 | + | s.Global[KeyBinding{uint(gdk.KEY_Left), ModAlt}] = ActionFocusLeft | |
| 383 | + | s.Global[KeyBinding{uint(gdk.KEY_Right), ModAlt}] = ActionFocusRight | |
| 382 | 384 | s.Global[KeyBinding{uint(gdk.KEY_Up), ModAlt}] = ActionFocusUp | |
| 383 | 385 | s.Global[KeyBinding{uint(gdk.KEY_Down), ModAlt}] = ActionFocusDown | |
| 384 | 386 | } | |
| @@ -360,8 +360,8 @@ func (s *ShortcutSet) registerStandardShortcuts() { | |||||
| 360 | s.Global[KeyBinding{uint(gdk.KEY_F5), ModNone}] = ActionReload | 360 | s.Global[KeyBinding{uint(gdk.KEY_F5), ModNone}] = ActionReload | ||
| 361 | s.Global[KeyBinding{uint(gdk.KEY_F5), ModCtrl}] = ActionHardReload | 361 | s.Global[KeyBinding{uint(gdk.KEY_F5), ModCtrl}] = ActionHardReload | ||
| 362 | s.Global[KeyBinding{uint(gdk.KEY_F12), ModNone}] = ActionOpenDevTools | 362 | s.Global[KeyBinding{uint(gdk.KEY_F12), ModNone}] = ActionOpenDevTools | ||
| 363 | - | s.Global[KeyBinding{uint(gdk.KEY_Left), ModAlt}] = ActionGoBack | 363 | + | s.Global[KeyBinding{uint(gdk.KEY_Left), ModCtrl}] = ActionGoBack |
| 364 | - | s.Global[KeyBinding{uint(gdk.KEY_Right), ModAlt}] = ActionGoForward | 364 | + | s.Global[KeyBinding{uint(gdk.KEY_Right), ModCtrl}] = ActionGoForward |
| 365 | s.Global[KeyBinding{uint(gdk.KEY_plus), ModCtrl}] = ActionZoomIn | 365 | s.Global[KeyBinding{uint(gdk.KEY_plus), ModCtrl}] = ActionZoomIn | ||
| 366 | s.Global[KeyBinding{uint(gdk.KEY_equal), ModCtrl}] = ActionZoomIn // Ctrl+= (no shift needed) | 366 | s.Global[KeyBinding{uint(gdk.KEY_equal), ModCtrl}] = ActionZoomIn // Ctrl+= (no shift needed) | ||
| 367 | s.Global[KeyBinding{uint(gdk.KEY_minus), ModCtrl}] = ActionZoomOut | 367 | s.Global[KeyBinding{uint(gdk.KEY_minus), ModCtrl}] = ActionZoomOut | ||
| @@ -379,6 +379,8 @@ func (s *ShortcutSet) registerPaneNavigationShortcuts() { | |||||
| 379 | s.Global[KeyBinding{uint(gdk.KEY_k), ModAlt}] = ActionFocusUp | 379 | s.Global[KeyBinding{uint(gdk.KEY_k), ModAlt}] = ActionFocusUp | ||
| 380 | s.Global[KeyBinding{uint(gdk.KEY_j), ModAlt}] = ActionFocusDown | 380 | s.Global[KeyBinding{uint(gdk.KEY_j), ModAlt}] = ActionFocusDown | ||
| 381 | 381 | ||||
| 382 | + | s.Global[KeyBinding{uint(gdk.KEY_Left), ModAlt}] = ActionFocusLeft | |||
| 383 | + | s.Global[KeyBinding{uint(gdk.KEY_Right), ModAlt}] = ActionFocusRight | |||
| 382 | s.Global[KeyBinding{uint(gdk.KEY_Up), ModAlt}] = ActionFocusUp | 384 | s.Global[KeyBinding{uint(gdk.KEY_Up), ModAlt}] = ActionFocusUp | ||
| 383 | s.Global[KeyBinding{uint(gdk.KEY_Down), ModAlt}] = ActionFocusDown | 385 | s.Global[KeyBinding{uint(gdk.KEY_Down), ModAlt}] = ActionFocusDown | ||
| 384 | } | 386 | } | ||