aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/event.rs
diff options
context:
space:
mode:
Diffstat (limited to 'alacritty/src/event.rs')
-rw-r--r--alacritty/src/event.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/alacritty/src/event.rs b/alacritty/src/event.rs
index 87f4d627..7f5e385b 100644
--- a/alacritty/src/event.rs
+++ b/alacritty/src/event.rs
@@ -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