mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-11 13:51:01 -05:00
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.
This commit is contained in:
parent
65f6e22bb4
commit
0790605adf
2 changed files with 2 additions and 3 deletions
|
@ -47,6 +47,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||||
- Missing glyph symbols not being rendered for missing glyphs on macOS and Windows
|
- Missing glyph symbols not being rendered for missing glyphs on macOS and Windows
|
||||||
- Underline cursor being obscured by underline
|
- Underline cursor being obscured by underline
|
||||||
- Cursor not being rendered with a lot of unicode glyphs visible
|
- Cursor not being rendered with a lot of unicode glyphs visible
|
||||||
|
- IME input swallowed after triggering a key binding
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
|
|
@ -824,7 +824,7 @@ impl<'a, T: EventListener, A: ActionContext<T>> Processor<'a, T, A> {
|
||||||
*self.ctx.received_count() = 0;
|
*self.ctx.received_count() = 0;
|
||||||
self.process_key_bindings(input);
|
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.search_input(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
*self.ctx.suppress_chars() = false;
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue