diff --git a/README.md b/README.md index 54cf85a..575265f 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Keep the file private (`chmod 600`); it holds your API keys. | Key | Action | |---|---| -| `F1`–`F4`, `Alt+1`–`4` | switch view | +| `F1`–`F4` | switch view | | `Tab`, `Shift+Tab` | switch panel within a view | | `?` / `F9` | help | | `/` | focus search box | diff --git a/SPECS.md b/SPECS.md index 579d8f7..337912c 100644 --- a/SPECS.md +++ b/SPECS.md @@ -101,7 +101,7 @@ Keybindings (initial proposal): | Key | Action | |---|---| | `Tab` / `Shift+Tab` | Switch panel within the current view (never the view) | -| `F1-F4` / `Alt+1-4` | Switch view, also while typing in a search box | +| `F1-F4` | Switch view, also while typing in a search box | | `/` | Focus search | | `Enter` | Search / open details / confirm | | `a` | Add selected result | diff --git a/internal/ui/app.go b/internal/ui/app.go index 8ac4f5e..b40f70f 100644 --- a/internal/ui/app.go +++ b/internal/ui/app.go @@ -275,18 +275,11 @@ func (a *App) handleKey(ev *tcell.EventKey) *tcell.EventKey { return ev } -// viewShortcut returns the view index for F1-F4 or Alt+1-4, or -1. +// viewShortcut returns the view index for F1-F4, or -1. func (a *App) viewShortcut(ev *tcell.EventKey) int { if ev.Key() >= tcell.KeyF1 && ev.Key() <= tcell.KeyF12 { return int(ev.Key() - tcell.KeyF1) } - if ev.Key() == tcell.KeyRune && ev.Modifiers()&tcell.ModAlt != 0 { - for i, v := range a.views { - if ev.Rune() == v.key { - return i - } - } - } return -1 } diff --git a/internal/ui/help.go b/internal/ui/help.go index e8cb4cd..f7f3460 100644 --- a/internal/ui/help.go +++ b/internal/ui/help.go @@ -6,7 +6,7 @@ import ( ) const helpText = `[yellow]Global[-] - F1-F4, Alt+1-4 switch view + F1-F4 switch view Tab, Shift+Tab switch panel within a view ?, F9 this help (F9 works while typing) q, Ctrl+C quit