From 0790605adfba6231db82c74070a2530ab862fbfa Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Thu, 31 Dec 2020 05:06:15 +0000 Subject: 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. --- alacritty/src/input.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'alacritty/src') 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> 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> Processor<'a, T, A> { self.ctx.search_input(c); } - *self.ctx.suppress_chars() = false; - return; } -- cgit