fix function keys in terminal widget
off-by-one error
This commit is contained in:
parent
294fead7ab
commit
35402e21d9
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ func init() {
|
||||||
keyMap[tcell.KeyPgDn] = directKey(vterm.KeyPageDown)
|
keyMap[tcell.KeyPgDn] = directKey(vterm.KeyPageDown)
|
||||||
for i := 0; i < 64; i++ {
|
for i := 0; i < 64; i++ {
|
||||||
keyMap[tcell.Key(int(tcell.KeyF1)+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.KeyTAB] = directKey(vterm.KeyTab)
|
||||||
keyMap[tcell.KeyESC] = directKey(vterm.KeyEscape)
|
keyMap[tcell.KeyESC] = directKey(vterm.KeyEscape)
|
||||||
|
|
Loading…
Reference in a new issue