fix function keys in terminal widget

off-by-one error
This commit is contained in:
Jonathan Halmen 2020-03-26 21:03:44 +01:00 committed by Drew DeVault
parent 294fead7ab
commit 35402e21d9
1 changed files with 1 additions and 1 deletions

View File

@ -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)