@@ -110,21 +110,21 @@ func TestGetCharEventKey(t *testing.T) {
110110 {giveKey {tcell .KeyDelete , 0 , tcell .ModAlt }, wantKey {AltDelete , 0 , nil }},
111111 {giveKey {tcell .KeyBackspace , 0 , tcell .ModCtrl }, wantKey {CtrlBackspace , 0 , nil }},
112112 {giveKey {tcell .KeyBackspace , 0 , tcell .ModCtrl | tcell .ModAlt }, wantKey {CtrlAltBackspace , 0 , nil }},
113- {giveKey {tcell .KeyBackspace , 0 , tcell .ModNone }, wantKey {Invalid , 0 , nil }}, // fabricated, unhandled
114- {giveKey {tcell .KeyBS , 0 , tcell .ModNone }, wantKey {Invalid , 0 , nil }}, // fabricated, unhandled
115- {giveKey {tcell .KeyCtrlH , 0 , tcell .ModNone }, wantKey {Invalid , 0 , nil }}, // fabricated, unhandled
116- {giveKey {tcell .KeyCtrlH , rune (tcell .KeyCtrlH ), tcell .ModNone }, wantKey {Backspace , 0 , nil }}, // actual "Backspace" keystroke
117- {giveKey {tcell .KeyCtrlH , rune (tcell .KeyCtrlH ), tcell .ModAlt }, wantKey {AltBackspace , 0 , nil }}, // actual "Alt+Backspace" keystroke
118- {giveKey {tcell .KeyDEL , rune (tcell .KeyDEL ), tcell .ModCtrl }, wantKey {CtrlBackspace , 0 , nil }}, // actual "Ctrl+Backspace" keystroke
119- {giveKey {tcell .KeyCtrlH , rune (tcell .KeyCtrlH ), tcell .ModShift }, wantKey {Backspace , 0 , nil }}, // actual "Shift+Backspace" keystroke
120- {giveKey {tcell .KeyCtrlH , 0 , tcell .ModCtrl | tcell .ModAlt }, wantKey {CtrlAltBackspace , 0 , nil }}, // actual "Ctrl+Alt+Backspace" keystroke
121- {giveKey {tcell .KeyCtrlH , 0 , tcell .ModCtrl | tcell .ModShift }, wantKey {CtrlBackspace , 0 , nil }}, // actual "Ctrl+Shift+Backspace" keystroke
122- {giveKey {tcell .KeyCtrlH , rune (tcell .KeyCtrlH ), tcell .ModShift | tcell .ModAlt }, wantKey {AltBackspace , 0 , nil }}, // actual "Shift+Alt+Backspace" keystroke
123- {giveKey {tcell .KeyCtrlH , 0 , tcell .ModCtrl | tcell .ModAlt | tcell .ModShift }, wantKey {CtrlAltBackspace , 0 , nil }}, // actual "Ctrl+Shift+Alt+Backspace" keystroke
124- {giveKey {tcell .KeyCtrlH , rune (tcell .KeyCtrlH ), tcell .ModCtrl }, wantKey {CtrlH , 0 , nil }}, // actual "Ctrl+H" keystroke
125- {giveKey {tcell .KeyCtrlH , rune (tcell .KeyCtrlH ), tcell .ModCtrl | tcell .ModAlt }, wantKey {CtrlAlt , 'h' , nil }}, // fabricated "Ctrl+Alt+H" keystroke
126- {giveKey {tcell .KeyCtrlH , rune (tcell .KeyCtrlH ), tcell .ModCtrl | tcell .ModShift }, wantKey {CtrlH , 0 , nil }}, // actual "Ctrl+Shift+H" keystroke
127- {giveKey {tcell .KeyCtrlH , rune (tcell .KeyCtrlH ), tcell .ModCtrl | tcell .ModAlt | tcell .ModShift }, wantKey {CtrlAlt , 'h' , nil }}, // fabricated "Ctrl+Shift+Alt+H" keystroke
113+ {giveKey {tcell .KeyBackspace , 0 , tcell .ModNone }, wantKey {Invalid , 0 , nil }}, // fabricated, unhandled
114+ {giveKey {tcell .KeyBS , 0 , tcell .ModNone }, wantKey {Invalid , 0 , nil }}, // fabricated, unhandled
115+ {giveKey {tcell .KeyCtrlH , 0 , tcell .ModNone }, wantKey {Invalid , 0 , nil }}, // fabricated, unhandled
116+ {giveKey {tcell .KeyCtrlH , rune (tcell .KeyCtrlH ), tcell .ModNone }, wantKey {CtrlBackspace , 0 , nil }}, // actual "Backspace" keystroke
117+ {giveKey {tcell .KeyCtrlH , rune (tcell .KeyCtrlH ), tcell .ModAlt }, wantKey {AltBackspace , 0 , nil }}, // actual "Alt+Backspace" keystroke
118+ {giveKey {tcell .KeyDEL , rune (tcell .KeyDEL ), tcell .ModCtrl }, wantKey {CtrlBackspace , 0 , nil }}, // actual "Ctrl+Backspace" keystroke
119+ {giveKey {tcell .KeyCtrlH , rune (tcell .KeyCtrlH ), tcell .ModShift }, wantKey {CtrlBackspace , 0 , nil }}, // actual "Shift+Backspace" keystroke
120+ {giveKey {tcell .KeyCtrlH , 0 , tcell .ModCtrl | tcell .ModAlt }, wantKey {CtrlAltBackspace , 0 , nil }}, // actual "Ctrl+Alt+Backspace" keystroke
121+ {giveKey {tcell .KeyCtrlH , 0 , tcell .ModCtrl | tcell .ModShift }, wantKey {CtrlBackspace , 0 , nil }}, // actual "Ctrl+Shift+Backspace" keystroke
122+ {giveKey {tcell .KeyCtrlH , rune (tcell .KeyCtrlH ), tcell .ModShift | tcell .ModAlt }, wantKey {AltBackspace , 0 , nil }}, // actual "Shift+Alt+Backspace" keystroke
123+ {giveKey {tcell .KeyCtrlH , 0 , tcell .ModCtrl | tcell .ModAlt | tcell .ModShift }, wantKey {CtrlAltBackspace , 0 , nil }}, // actual "Ctrl+Shift+Alt+Backspace" keystroke
124+ {giveKey {tcell .KeyCtrlH , rune (tcell .KeyCtrlH ), tcell .ModCtrl }, wantKey {CtrlBackspace , 0 , nil }}, // actual "Ctrl+H" keystroke
125+ {giveKey {tcell .KeyCtrlH , rune (tcell .KeyCtrlH ), tcell .ModCtrl | tcell .ModAlt }, wantKey {AltBackspace , 0 , nil }}, // fabricated "Ctrl+Alt+H" keystroke
126+ {giveKey {tcell .KeyCtrlH , rune (tcell .KeyCtrlH ), tcell .ModCtrl | tcell .ModShift }, wantKey {CtrlBackspace , 0 , nil }}, // actual "Ctrl+Shift+H" keystroke
127+ {giveKey {tcell .KeyCtrlH , rune (tcell .KeyCtrlH ), tcell .ModCtrl | tcell .ModAlt | tcell .ModShift }, wantKey {AltBackspace , 0 , nil }}, // fabricated "Ctrl+Shift+Alt+H" keystroke
128128
129129 // section 4: (Alt+Shift)+Key(Up|Down|Left|Right)
130130 {giveKey {tcell .KeyUp , 0 , tcell .ModNone }, wantKey {Up , 0 , nil }},
0 commit comments