summaryrefslogtreecommitdiffstats
path: root/src/tui/tcell_test.go
diff options
context:
space:
mode:
authorVlastimil Ovčáčík <vovcacik@github.ovcacik.org>2021-09-20 19:48:53 +0200
committerJunegunn Choi <junegunn.c@gmail.com>2021-10-03 01:39:30 +0900
commit4271e9cffae06b0b98d334d67ff7f0f5f9da80b0 (patch)
tree7d8bc27dc74b89145ee70a5c2d016107ee44948a /src/tui/tcell_test.go
parentf3dc8a10d5b5a639f7924cf32f2e02f0f9c48e67 (diff)
Fix Ctrl+Space key combination to emit CtrlSpace instead of Rune ' '
Diffstat (limited to 'src/tui/tcell_test.go')
-rw-r--r--src/tui/tcell_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tui/tcell_test.go b/src/tui/tcell_test.go
index 5aff3926..1a10faf2 100644
--- a/src/tui/tcell_test.go
+++ b/src/tui/tcell_test.go
@@ -91,7 +91,7 @@ func TestGetCharEventKey(t *testing.T) {
// section 2: Ctrl+[ \]_]
{giveKey{tcell.KeyCtrlSpace, rune(tcell.KeyCtrlSpace), tcell.ModCtrl}, wantKey{CtrlSpace, 0, nil}}, // fabricated
{giveKey{tcell.KeyNUL, rune(tcell.KeyNUL), tcell.ModNone}, wantKey{CtrlSpace, 0, nil}}, // fabricated, unhandled
- {giveKey{tcell.KeyRune, ' ', tcell.ModCtrl}, wantKey{Rune, ' ', nil}}, // actual Ctrl+' '
+ {giveKey{tcell.KeyRune, ' ', tcell.ModCtrl}, wantKey{CtrlSpace, 0, nil}}, // actual Ctrl+' '
{giveKey{tcell.KeyCtrlBackslash, rune(tcell.KeyCtrlBackslash), tcell.ModCtrl}, wantKey{CtrlBackSlash, 0, nil}},
{giveKey{tcell.KeyCtrlRightSq, rune(tcell.KeyCtrlRightSq), tcell.ModCtrl}, wantKey{CtrlRightBracket, 0, nil}},
{giveKey{tcell.KeyCtrlUnderscore, rune(tcell.KeyCtrlUnderscore), tcell.ModShift | tcell.ModCtrl}, wantKey{CtrlSlash, 0, nil}},