Space presses form buttons, as the help says
Only the Test button turned Space into Enter; Save, Revert and the buttons of the dialogs ignored it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019reK4DUGYqDUjniWYJvwUW
This commit is contained in:
@@ -44,6 +44,9 @@ func arrowNavigation(f *tview.Form, cancel func(), hooks *browseHooks) {
|
||||
return ev
|
||||
}
|
||||
b.dd = nil
|
||||
if button >= 0 && ev.Key() == tcell.KeyRune && ev.Rune() == ' ' {
|
||||
return tcell.NewEventKey(tcell.KeyEnter, 0, 0) // Space presses a button too
|
||||
}
|
||||
total := f.GetFormItemCount() + f.GetButtonCount()
|
||||
pos := item
|
||||
if button >= 0 {
|
||||
|
||||
Reference in New Issue
Block a user