Skip to content
Myr

Fix modifier detection for Backspace / Ctrl-H on Windows (#4582)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Windows sends different key events and modifier combinations to theFullscreenRenderer than a tcell FullscreenRenderer on Linux (-tags tcell). This led to Ctrl+H being misinterpreted (and therefore unbindable) on some Windows builds. Basically reverts changes to `src/tui/tcell.go` introduced by `a0cabe0`.

authored by Massimo Mund · committed by GitHub · parent 8a05083 · Browse files · 1 file+4 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−2 removed

  • other:+4 added−2 removed

1 file+4 added−2 removed

modified:src/tui/tcell.go+4 added-2 removed
369 unmodified lines
370 return Event{CtrlBackspace, 0, nil}371 }372 case rune(tcell.KeyCtrlH):373 switch {374 case ctrl:375 return keyfn('h')376 case alt:377 return Event{AltBackspace, 0, nil}376 case ctrl, none, shift:377 return keyfn('h')378 case none, shift:379 return Event{Backspace, 0, nil}380 }381 }382 case tcell.KeyCtrlI:383 return keyfn('i')
683 unmodified lines