Skip to content

Commit ce18ca2

Browse files
committed
fix(keys): Incorrect names for keys (fixes #874)
(cherry picked from commit e9dc207)
1 parent 0b5424d commit ce18ca2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

key.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,9 @@ func NewEventKey(k Key, ch rune, mod ModMask) *EventKey {
267267
ch = ch + '\x60'
268268
}
269269
}
270-
if k == KeyRune && ch >= '@' && ch <= '_' && mod == ModCtrl {
270+
if k == KeyRune && ch >= 'A' && ch <= 'Z' && mod == ModCtrl {
271271
// We don't do Ctrl-[ or backslash or those specially.
272-
k = KeyCtrlA + Key(ch-'@')
272+
k = KeyCtrlA + Key(ch-'A')
273273
}
274274

275275
// Might be lower case

0 commit comments

Comments
 (0)