Remove synthetic keyboard event handling

Fixes #3109.
This commit is contained in:
Christian Duerr 2020-01-14 17:01:43 +01:00 committed by GitHub
parent 12e211d82a
commit c1664b348d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Crash when starting on some X11 systems
- Font size resetting when Alacritty is moved between screens
- Limited payload length in clipboard escape (used for Tmux copy/paste)
- Alacritty not ignoring keyboard events for changing WM focus on X11
## 0.4.1

View File

@ -527,7 +527,7 @@ impl<N: Notify + OnResize> Processor<N> {
processor.ctx.display_update_pending.dimensions = Some(size);
processor.ctx.terminal.dirty = true;
},
KeyboardInput { input, .. } => {
KeyboardInput { input, is_synthetic: false, .. } => {
processor.key_input(input);
if input.state == ElementState::Pressed {
// Hide cursor while typing
@ -581,7 +581,8 @@ impl<N: Notify + OnResize> Processor<N> {
processor.ctx.terminal.dirty = true;
}
},
TouchpadPressure { .. }
KeyboardInput { is_synthetic: true, .. }
| TouchpadPressure { .. }
| ScaleFactorChanged { .. }
| CursorEntered { .. }
| AxisMotion { .. }
@ -614,7 +615,8 @@ impl<N: Notify + OnResize> Processor<N> {
GlutinEvent::WindowEvent { event, .. } => {
use glutin::event::WindowEvent::*;
match event {
TouchpadPressure { .. }
KeyboardInput { is_synthetic: true, .. }
| TouchpadPressure { .. }
| CursorEntered { .. }
| AxisMotion { .. }
| HoveredFileCancelled