From 35402e21d9b75f0d0a3a4efb8b552e1c9a2e6d59 Mon Sep 17 00:00:00 2001 From: Jonathan Halmen Date: Thu, 26 Mar 2020 21:03:44 +0100 Subject: fix function keys in terminal widget off-by-one error --- widgets/terminal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'widgets/terminal.go') diff --git a/widgets/terminal.go b/widgets/terminal.go index 8c557df1..8fc38cea 100644 --- a/widgets/terminal.go +++ b/widgets/terminal.go @@ -80,7 +80,7 @@ func init() { keyMap[tcell.KeyPgDn] = directKey(vterm.KeyPageDown) for i := 0; i < 64; i++ { keyMap[tcell.Key(int(tcell.KeyF1)+i)] = - directKey(vterm.Key(int(vterm.KeyFunction0) + i)) + directKey(vterm.Key(int(vterm.KeyFunction0) + i + 1)) } keyMap[tcell.KeyTAB] = directKey(vterm.KeyTab) keyMap[tcell.KeyESC] = directKey(vterm.KeyEscape) -- cgit