Skip to content

Commit d79dec6

Browse files
committed
fix: ctrl-J is reported as KeyCR/KeyEnter on legacy terminals (fixes #911)
1 parent dcce777 commit d79dec6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

input.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ func (ip *inputProcessor) scan() {
413413
ip.post(NewEventKey(KeyTab, 0, ModNone))
414414
case '\b', '\x7F':
415415
ip.post(NewEventKey(KeyBackspace, 0, ModNone))
416-
case '\n', '\r':
416+
case '\r':
417417
ip.post(NewEventKey(KeyEnter, 0, ModNone))
418418
default:
419419
// Control keys - legacy handling

0 commit comments

Comments
 (0)