diff options
author | Jonathan Halmen <jonathan@halmen.xyz> | 2020-03-26 21:03:44 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-03-26 16:04:11 -0400 |
commit | 35402e21d9b75f0d0a3a4efb8b552e1c9a2e6d59 (patch) | |
tree | e08f295acbaceb0e41d109fb16ba1efd94b9ed62 /widgets/terminal.go | |
parent | 294fead7abae9de9c0bc6afde30b1d29d98a10e6 (diff) | |
download | aerc-35402e21d9b75f0d0a3a4efb8b552e1c9a2e6d59.tar.gz |
fix function keys in terminal widget
off-by-one error
Diffstat (limited to 'widgets/terminal.go')
-rw-r--r-- | widgets/terminal.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/terminal.go b/widgets/terminal.go index 8c557df..8fc38ce 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) |