about summary refs log tree commit diff stats
path: root/widgets/terminal.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/terminal.go')
-rw-r--r--widgets/terminal.go2
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)