detached f94457c

fix(shortcuts): remove duplicate Ctrl+F registration causing find toggle conflicts

commit
f94457c1d84a11d033a2621ef4a3888cce5922ea
author
bamen · · 2025-09-21 03:08 UTC
parent
aef040f
signature
unsigned
1 file · +1 -4
M pkg/webkit/webview_cgo.go +1 -4
@@ -1304,10 +1304,7 @@ func NewWebView(cfg *Config) (*WebView, error) {
13041304 _ = v.SetZoom(nz)
13051305 })
13061306 _ = v.RegisterKeyboardShortcut("cmdorctrl+0", func() { _ = v.SetZoom(1.0) })
1307- // Find in page (Ctrl/Cmd+F): use new keyboard service bridge
1308- _ = v.RegisterKeyboardShortcut("cmdorctrl+f", func() {
1309- _ = v.InjectScript("document.dispatchEvent(new CustomEvent('dumber:key',{detail:{shortcut:'cmdorctrl+f'}}))")
1310- })
1307+ // Find in page (Ctrl/Cmd+F): handled by window-level shortcuts in window_shortcuts.go
13111308 // Navigation with Ctrl/Cmd + Arrow keys: forward to keyboard service bridge
13121309 _ = v.RegisterKeyboardShortcut("cmdorctrl+ArrowLeft", func() {
13131310 _ = v.InjectScript("document.dispatchEvent(new CustomEvent('dumber:key',{detail:{shortcut:'cmdorctrl+arrowleft'}}))")
@@ -1304,10 +1304,7 @@ func NewWebView(cfg *Config) (*WebView, error) {
1304 _ = v.SetZoom(nz)1304 _ = v.SetZoom(nz)
1305 })1305 })
1306 _ = v.RegisterKeyboardShortcut("cmdorctrl+0", func() { _ = v.SetZoom(1.0) })1306 _ = v.RegisterKeyboardShortcut("cmdorctrl+0", func() { _ = v.SetZoom(1.0) })
1307- // Find in page (Ctrl/Cmd+F): use new keyboard service bridge1307+ // Find in page (Ctrl/Cmd+F): handled by window-level shortcuts in window_shortcuts.go
1308- _ = v.RegisterKeyboardShortcut("cmdorctrl+f", func() {
1309- _ = v.InjectScript("document.dispatchEvent(new CustomEvent('dumber:key',{detail:{shortcut:'cmdorctrl+f'}}))")
1310- })
1311 // Navigation with Ctrl/Cmd + Arrow keys: forward to keyboard service bridge1308 // Navigation with Ctrl/Cmd + Arrow keys: forward to keyboard service bridge
1312 _ = v.RegisterKeyboardShortcut("cmdorctrl+ArrowLeft", func() {1309 _ = v.RegisterKeyboardShortcut("cmdorctrl+ArrowLeft", func() {
1313 _ = v.InjectScript("document.dispatchEvent(new CustomEvent('dumber:key',{detail:{shortcut:'cmdorctrl+arrowleft'}}))")1310 _ = v.InjectScript("document.dispatchEvent(new CustomEvent('dumber:key',{detail:{shortcut:'cmdorctrl+arrowleft'}}))")

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 8

Tags 42

↑↓ moveenter openesc close