mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-17 02:25:12 -07:00
fix(key): recover the insert key
We started supporting insert in #418, but then accidentally removed it during a rebase in #396. Oops.
This commit is contained in:
committed by
Christian Muehlhaeuser
parent
f406999cba
commit
0e76ba142a
4
key.go
4
key.go
@@ -390,6 +390,10 @@ var sequences = map[string]Key{
|
||||
// Miscellaneous keys
|
||||
"\x1b[Z": {Type: KeyShiftTab},
|
||||
|
||||
"\x1b[2~": {Type: KeyInsert},
|
||||
"\x1b[3;2~": {Type: KeyInsert, Alt: true},
|
||||
"\x1b\x1b[2~": {Type: KeyInsert, Alt: true}, // urxvt
|
||||
|
||||
"\x1b[3~": {Type: KeyDelete},
|
||||
"\x1b[3;3~": {Type: KeyDelete, Alt: true},
|
||||
"\x1b\x1b[3~": {Type: KeyDelete, Alt: true}, // urxvt
|
||||
|
||||
Reference in New Issue
Block a user