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:
committed by
Junegunn Choi
parent
f3dc8a10d5
commit
4271e9cffa
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user