Distinguish between Ctrl-H and Ctrl-Backspace in Windows (#4590)

Since you can actually distinguish between Ctrl-H and Ctrl-Backspace in Windows we need to reintroduce the tui.CtrlH constant. On *nix systems we map all Ctrl(-Alt)-h to Ctrl(-Alt)-Backspace internally, but you can use either in --bind.
This commit is contained in:
Massimo Mund authored and GitHub committed 2025-11-16 20:00:24 +09:00
1 parent 2471edf3ff
commit c3e6d9a8f9
4 files changed
+90 -83

No files matched your search

+2 -1
View File
@@ -43,7 +43,7 @@ const (
CtrlE
CtrlF
CtrlG
CtrlBackspace
CtrlH
Tab
CtrlJ
CtrlK
@@ -137,6 +137,7 @@ const (
CtrlRight
CtrlHome
CtrlEnd
CtrlBackspace
CtrlDelete
CtrlPageUp
CtrlPageDown