diff options
author | Hubert Hirtz <hubert@hirtz.pm> | 2021-10-26 18:41:19 +0200 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtz.pm> | 2021-10-26 18:41:19 +0200 |
commit | 97685359be3244cedc64b10a3cab273aaa2988e4 (patch) | |
tree | 072f818c632eaece4041b44605d7b0e217d9583a /app.go | |
parent | timeline drawing: fix off-by-one error (diff) |
Scroll up/down highlight by highlight
Diffstat (limited to 'app.go')
-rw-r--r-- | app.go | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -489,8 +489,17 @@ func (app *App) handleKeyEvent(ev *tcell.EventKey) { }) } case tcell.KeyRune: - app.win.InputRune(ev.Rune()) - app.typing() + if ev.Modifiers() == tcell.ModAlt { + switch ev.Rune() { + case 'n': + app.win.ScrollDownHighlight() + case 'p': + app.win.ScrollUpHighlight() + } + } else { + app.win.InputRune(ev.Rune()) + app.typing() + } default: return } |