diff options
author | Christian Duerr <contact@christianduerr.com> | 2020-12-31 05:06:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-31 05:06:15 +0000 |
commit | 0790605adfba6231db82c74070a2530ab862fbfa (patch) | |
tree | aba8f5757a7b54d9b87db7cd7235c9d65a172822 /alacritty | |
parent | 65f6e22bb428e1abc132dd43a41ebbede83f6bb8 (diff) | |
download | r-alacritty-0790605adfba6231db82c74070a2530ab862fbfa.tar.gz r-alacritty-0790605adfba6231db82c74070a2530ab862fbfa.tar.bz2 r-alacritty-0790605adfba6231db82c74070a2530ab862fbfa.zip |
Fix characters getting swallowed during IME input
This reverts 1d00883 since it is not necessary anymore after all search
bindings are now proper key bindings. This fixes a bug which would cause
the first character to be swallowed when using IME after triggering any
key binding which doesn't send any `ReceivedCharacter` event.
Fixes #4588.
Diffstat (limited to 'alacritty')
-rw-r--r-- | alacritty/src/input.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/alacritty/src/input.rs b/alacritty/src/input.rs index 55799dc5..259ceeba 100644 --- a/alacritty/src/input.rs +++ b/alacritty/src/input.rs @@ -824,7 +824,7 @@ impl<'a, T: EventListener, A: ActionContext<T>> Processor<'a, T, A> { *self.ctx.received_count() = 0; self.process_key_bindings(input); }, - ElementState::Released => (), + ElementState::Released => *self.ctx.suppress_chars() = false, } } @@ -854,8 +854,6 @@ impl<'a, T: EventListener, A: ActionContext<T>> Processor<'a, T, A> { self.ctx.search_input(c); } - *self.ctx.suppress_chars() = false; - return; } |