m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 07:43:39 -05:00

Fix Ctrl+Space key combination to emit CtrlSpace instead of Rune ' '

This commit is contained in:
Vlastimil Ovčáčík
2021-09-20 19:48:53 +02:00
committed by Junegunn Choi
parent f3dc8a10d5
commit 4271e9cffa
2 changed files with 4 additions and 1 deletions

View File

@@ -396,6 +396,9 @@ func (r *FullscreenRenderer) GetChar() Event {
r := ev.Rune()
switch {
// translate native key events to ascii control characters
case r == ' ' && ctrl:
return Event{CtrlSpace, 0, nil}
// handle AltGr characters
case ctrlAlt:
return Event{Rune, r, nil} // dropping modifiers