From 54b100869a7473716b3f0146053b8f4fe9898fe1 Mon Sep 17 00:00:00 2001 From: Hubert Hirtz Date: Mon, 10 Aug 2020 10:35:22 +0200 Subject: editor: Handle UP and DOWN keys --- app.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app.go') diff --git a/app.go b/app.go index 90ba980..8263c9e 100644 --- a/app.go +++ b/app.go @@ -232,6 +232,10 @@ func (app *App) handleUIEvent(ev tcell.Event) { } else { app.win.InputLeft() } + case tcell.KeyUp: + app.win.InputUp() + case tcell.KeyDown: + app.win.InputDown() case tcell.KeyHome: app.win.InputHome() case tcell.KeyEnd: -- cgit v1.2.3