Fixed some bugs with the backspace key mappings

This commit is contained in:
Leon Mika 2021-03-24 08:28:40 +11:00
parent 185900d626
commit 82face0010
2 changed files with 36 additions and 36 deletions

View file

@ -85,7 +85,7 @@ const (
KeyArrowRight
KeyBackspace = KeyCtrlH
KeyBackspace2 = KeyCtrl8
KeyBackspace2
KeyEnter = KeyCtrlM
KeyEsc = KeyCtrl3
)

View file

@ -100,7 +100,7 @@ var termboxKeysToSpecialKeys = map[termbox.Key]rune{
termbox.KeyArrowDown: KeyArrowDown,
termbox.KeyArrowLeft: KeyArrowLeft,
termbox.KeyArrowRight: KeyArrowRight,
termbox.KeyBackspace2: KeyBackspace2,
termbox.KeyCtrlA: KeyCtrlA,
termbox.KeyCtrlB: KeyCtrlB,
termbox.KeyCtrlC: KeyCtrlC,