Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.11-rc2: Alt key is no longer sent into WSL #6356

Closed
ilya-bobyr opened this issue Sep 24, 2022 · 9 comments · Fixed by #6383
Closed

0.11-rc2: Alt key is no longer sent into WSL #6356

ilya-bobyr opened this issue Sep 24, 2022 · 9 comments · Fixed by #6383

Comments

@ilya-bobyr
Copy link
Contributor

Alt key does not seem to be delivered into a running WSL instance as of 0.11-rc2.
Works in 0.11-rc1.

System

OS: Windows
Version: alacritty 0.11.0-rc2 (f4ce3ff)

Logs

In both cases I start a new Alacritty instance from PowerShell, wait a second for Fish to start, type "test<Alt+B><Ctrl+E><Ctrl+U><Ctrl+D>".

--print-events output for rc1:

PS D:\Installs\Programming\Alacritty> .\Alacritty-v0.11.0-rc1-portable.exe --print-events --command C:\Windows\System32\wsl.exe
PS D:\Installs\Programming\Alacritty> Created log file at "C:\Users\Ilya\AppData\Local\Temp\Alacritty-20188.log"
[0.000002300s] [INFO ] [alacritty] Welcome to Alacritty
[0.000286100s] [INFO ] [alacritty] Version 0.11.0-rc1 (7cd180d)
[0.001894900s] [INFO ] [alacritty] Configuration files loaded from:
                                     "C:\\Users\\Ilya\\AppData\\Roaming\\alacritty\\alacritty.yml"
[0.002583700s] [INFO ] [alacritty] glutin event: NewEvents(Init)
[0.002694800s] [INFO ] [alacritty] glutin event: Resumed
[0.097865100s] [INFO ] [alacritty] Running on NVIDIA GeForce RTX 3080/PCIe/SSE2
[0.098012100s] [INFO ] [alacritty] Using OpenGL 3.3 renderer
[0.101568000s] [INFO ] [alacritty] Display scale factor: 1.5
[0.102691700s] [INFO ] [alacritty] Cell size: 12 x 24
[0.102777900s] [INFO ] [alacritty] Padding: 0 x 0
[0.102851100s] [INFO ] [alacritty] Width: 800, Height: 600
[0.122088500s] [INFO ] [alacritty] PTY dimensions: 25 x 66
[0.127221700s] [INFO ] [alacritty] Initialisation complete
[0.127463600s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: Resized(PhysicalSize { width: 800, height: 600 }) }
[0.127819800s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 28, state: Released, virtual_keycode: Some(Return), modifiers: (empty) }, is_synthetic: true } }
[0.128245900s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: Focused(true) }
[0.128434000s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: Resized(PhysicalSize { width: 800, height: 600 }) }
[0.129289000s] [INFO ] [alacritty] glutin event: DeviceEvent { device_id: DeviceId(DeviceId(66483)), event: Added }
[0.129465900s] [INFO ] [alacritty] glutin event: DeviceEvent { device_id: DeviceId(DeviceId(65612)), event: Added }
[0.129594000s] [INFO ] [alacritty] glutin event: DeviceEvent { device_id: DeviceId(DeviceId(131146)), event: Added }
[0.129716000s] [INFO ] [alacritty] glutin event: DeviceEvent { device_id: DeviceId(DeviceId(66481)), event: Added }
[0.129994700s] [INFO ] [alacritty] glutin event: DeviceEvent { device_id: DeviceId(DeviceId(65599)), event: Added }
[0.130199200s] [INFO ] [alacritty] glutin event: DeviceEvent { device_id: DeviceId(DeviceId(65597)), event: Added }
[0.130414500s] [INFO ] [alacritty] glutin event: MainEventsCleared
[0.130514300s] [INFO ] [alacritty] glutin event: RedrawRequested(WindowId(WindowId(1376978)))
[0.130614600s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[0.130731000s] [INFO ] [alacritty] Padding: 0 x 0
[0.130824200s] [INFO ] [alacritty] Width: 800, Height: 600
[0.225130800s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41934.9366278s }, requested_resume: None })
[0.225613700s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Title(C:\Windows\System32\wsl.exe)) })
[0.226116500s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Wakeup) })
[0.226301200s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Wakeup) })
[0.226648200s] [INFO ] [alacritty] glutin event: MainEventsCleared
[0.226780700s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[1.352010100s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41935.0330766s }, requested_resume: None })
[1.352300600s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Title(/m/d/I/P/Alacritty)) })
[1.352545600s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Wakeup) })
[1.352710500s] [INFO ] [alacritty] glutin event: MainEventsCleared
[1.352803400s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[1.367518300s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41936.1586983s }, requested_resume: None })
[1.367892600s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Wakeup) })
[1.368044000s] [INFO ] [alacritty] glutin event: MainEventsCleared
[1.368149800s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[1.383463200s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41936.1739571s }, requested_resume: None })
[1.383788100s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Wakeup) })
[1.383939100s] [INFO ] [alacritty] glutin event: MainEventsCleared
[1.384036300s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[3.399784300s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41936.1899857s }, requested_resume: None })
[3.400005400s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 20, state: Pressed, virtual_keycode: Some(T), modifiers: (empty) }, is_synthetic: false } }
[3.400239000s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: ReceivedCharacter('t') }
[3.400419300s] [INFO ] [alacritty] glutin event: MainEventsCleared
[3.400515000s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[3.401218200s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41938.2062371s }, requested_resume: None })
[3.401329200s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Wakeup) })
[3.401478300s] [INFO ] [alacritty] glutin event: MainEventsCleared
[3.401606900s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[3.413542700s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41938.2073943s }, requested_resume: None })
[3.414548600s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Wakeup) })
[3.414726800s] [INFO ] [alacritty] glutin event: MainEventsCleared
[3.414836100s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[3.477092700s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41938.2206432s }, requested_resume: None })
[3.477347200s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Wakeup) })
[3.477714700s] [INFO ] [alacritty] glutin event: MainEventsCleared
[3.477819600s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[3.493845000s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41938.2840409s }, requested_resume: None })
[3.494196000s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Wakeup) })
[3.494815200s] [INFO ] [alacritty] glutin event: MainEventsCleared
[3.496150600s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[3.531579600s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41938.3022618s }, requested_resume: None })
[3.531798200s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 20, state: Released, virtual_keycode: Some(T), modifiers: (empty) }, is_synthetic: false } }
[3.533012300s] [INFO ] [alacritty] glutin event: MainEventsCleared
[3.535046500s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[3.697597400s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41938.341209s }, requested_resume: None })
[3.698035000s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 18, state: Pressed, virtual_keycode: Some(E), modifiers: (empty) }, is_synthetic: false } }
[3.699559400s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: ReceivedCharacter('e') }
[3.700951700s] [INFO ] [alacritty] glutin event: MainEventsCleared
[3.701396800s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[3.704836400s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41938.5098621s }, requested_resume: None })
[3.704973300s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Wakeup) })
[3.705487400s] [INFO ] [alacritty] glutin event: MainEventsCleared
[3.705931600s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[3.715354400s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41938.5120516s }, requested_resume: None })
[3.716111000s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Wakeup) })
[3.716731100s] [INFO ] [alacritty] glutin event: MainEventsCleared
[3.719016100s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[3.815514600s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41938.5251622s }, requested_resume: None })
[3.815728200s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 18, state: Released, virtual_keycode: Some(E), modifiers: (empty) }, is_synthetic: false } }
[3.817510700s] [INFO ] [alacritty] glutin event: MainEventsCleared
[3.818927600s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[3.949269400s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41938.6250004s }, requested_resume: None })
[3.949472200s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Wakeup) })
[3.951178700s] [INFO ] [alacritty] glutin event: MainEventsCleared
[3.952417200s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[3.966165800s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41938.7586011s }, requested_resume: None })
[3.966411400s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Wakeup) })
[3.966964500s] [INFO ] [alacritty] glutin event: MainEventsCleared
[3.968309000s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[3.986501500s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41938.7744215s }, requested_resume: None })
[3.986672700s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 31, state: Pressed, virtual_keycode: Some(S), modifiers: (empty) }, is_synthetic: false } }
[3.987164300s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: ReceivedCharacter('s') }
[3.989193700s] [INFO ] [alacritty] glutin event: MainEventsCleared
[3.989717300s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[3.991058100s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41938.7961399s }, requested_resume: None })
[3.991224400s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Wakeup) })
[3.991734000s] [INFO ] [alacritty] glutin event: MainEventsCleared
[3.992192400s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[4.012991300s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41938.7983348s }, requested_resume: None })
[4.013270500s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Wakeup) })
[4.015439100s] [INFO ] [alacritty] glutin event: MainEventsCleared
[4.016534400s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[4.064634800s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41938.8226912s }, requested_resume: None })
[4.064895800s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 20, state: Pressed, virtual_keycode: Some(T), modifiers: (empty) }, is_synthetic: false } }
[4.066766900s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: ReceivedCharacter('t') }
[4.068151200s] [INFO ] [alacritty] glutin event: MainEventsCleared
[4.068601900s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[4.069983500s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41938.8750915s }, requested_resume: None })
[4.070119400s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Wakeup) })
[4.072529200s] [INFO ] [alacritty] glutin event: MainEventsCleared
[4.072976300s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[4.090787400s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41938.8793199s }, requested_resume: None })
[4.091007200s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Wakeup) })
[4.093207700s] [INFO ] [alacritty] glutin event: MainEventsCleared
[4.093638200s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[4.108586400s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41938.9002493s }, requested_resume: None })
[4.108795700s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 31, state: Released, virtual_keycode: Some(S), modifiers: (empty) }, is_synthetic: false } }
[4.109398500s] [INFO ] [alacritty] glutin event: MainEventsCleared
[4.110739200s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[4.142487400s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41938.916783s }, requested_resume: None })
[4.142704300s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 20, state: Released, virtual_keycode: Some(T), modifiers: (empty) }, is_synthetic: false } }
[4.144241100s] [INFO ] [alacritty] glutin event: MainEventsCleared
[4.145529600s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[4.376835900s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41938.9516089s }, requested_resume: None })
[4.377066300s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Wakeup) })
[4.378715100s] [INFO ] [alacritty] glutin event: MainEventsCleared
[4.380074900s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[4.390450200s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41939.1862233s }, requested_resume: None })
[4.390864100s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Wakeup) })
[4.391602300s] [INFO ] [alacritty] glutin event: MainEventsCleared
[4.393022800s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[4.567512500s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41939.1991345s }, requested_resume: None })
[4.567783300s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: ModifiersChanged(ALT) }
[4.569243300s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 56, state: Pressed, virtual_keycode: Some(LAlt), modifiers: ALT }, is_synthetic: false } }
[4.570881300s] [INFO ] [alacritty] glutin event: MainEventsCleared
[4.571403400s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[4.763887200s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41939.379871s }, requested_resume: None })
[4.764161300s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 48, state: Pressed, virtual_keycode: Some(B), modifiers: ALT }, is_synthetic: false } }
[4.765765400s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: ReceivedCharacter('b') }
[4.767197300s] [INFO ] [alacritty] glutin event: MainEventsCleared
[4.767697300s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[4.771153100s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41939.5762564s }, requested_resume: None })
[4.771289600s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Wakeup) })
[4.771792400s] [INFO ] [alacritty] glutin event: MainEventsCleared
[4.772498200s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[4.875537800s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41939.5786427s }, requested_resume: None })
[4.875754700s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 48, state: Released, virtual_keycode: Some(B), modifiers: ALT }, is_synthetic: false } }
[4.877284000s] [INFO ] [alacritty] glutin event: MainEventsCleared
[4.878632400s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[5.046571400s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41939.6847501s }, requested_resume: None })
[5.046836700s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: ModifiersChanged((empty)) }
[5.048759400s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 56, state: Released, virtual_keycode: Some(LAlt), modifiers: (empty) }, is_synthetic: false } }
[5.050351600s] [INFO ] [alacritty] glutin event: MainEventsCleared
[5.050819600s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[6.140830100s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41939.8592485s }, requested_resume: None })
[6.141149900s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: ModifiersChanged(CTRL) }
[6.142597100s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 29, state: Pressed, virtual_keycode: Some(LControl), modifiers: CTRL }, is_synthetic: false } }
[6.145191800s] [INFO ] [alacritty] glutin event: MainEventsCleared
[6.145729300s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[6.517519700s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41940.9597693s }, requested_resume: None })
[6.517831200s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 18, state: Pressed, virtual_keycode: Some(E), modifiers: CTRL }, is_synthetic: false } }
[6.519524400s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: ReceivedCharacter('\u{5}') }
[6.522064300s] [INFO ] [alacritty] glutin event: MainEventsCleared
[6.522788500s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[6.529415900s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41941.3344878s }, requested_resume: None })
[6.529551200s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Wakeup) })
[6.531960700s] [INFO ] [alacritty] glutin event: MainEventsCleared
[6.532679600s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[6.619513400s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41941.3443413s }, requested_resume: None })
[6.619734500s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 18, state: Released, virtual_keycode: Some(E), modifiers: CTRL }, is_synthetic: false } }
[6.622344800s] [INFO ] [alacritty] glutin event: MainEventsCleared
[6.624408600s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[7.671726300s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41941.4304629s }, requested_resume: None })
[7.672017700s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 22, state: Pressed, virtual_keycode: Some(U), modifiers: CTRL }, is_synthetic: false } }
[7.673442700s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: ReceivedCharacter('\u{15}') }
[7.676303000s] [INFO ] [alacritty] glutin event: MainEventsCleared
[7.676830400s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[7.682732000s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41942.4877807s }, requested_resume: None })
[7.682868700s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Wakeup) })
[7.686350100s] [INFO ] [alacritty] glutin event: MainEventsCleared
[7.686751100s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[7.780563100s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41942.4930663s }, requested_resume: None })
[7.780794100s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 22, state: Released, virtual_keycode: Some(U), modifiers: CTRL }, is_synthetic: false } }
[7.782317900s] [INFO ] [alacritty] glutin event: MainEventsCleared
[7.785351500s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[8.584817000s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41942.5915286s }, requested_resume: None })
[8.585116800s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 32, state: Pressed, virtual_keycode: Some(D), modifiers: CTRL }, is_synthetic: false } }
[8.586579700s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: ReceivedCharacter('\u{4}') }
[8.589520400s] [INFO ] [alacritty] glutin event: MainEventsCleared
[8.590022900s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[8.595951200s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41943.400996s }, requested_resume: None })
[8.596096500s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Wakeup) })
[8.596731600s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Wakeup) })
[8.597245400s] [INFO ] [alacritty] glutin event: MainEventsCleared
[8.597772800s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[8.601545300s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41943.4039329s }, requested_resume: None })
[8.602146900s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Exit) })
[8.609528500s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Wakeup) })
[8.611299400s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 29, state: Released, virtual_keycode: None, modifiers: CTRL }, is_synthetic: true } }
[8.611719100s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 32, state: Released, virtual_keycode: Some(D), modifiers: CTRL }, is_synthetic: true } }
[8.611939000s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 29, state: Released, virtual_keycode: Some(LControl), modifiers: CTRL }, is_synthetic: true } }
[8.612141600s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: ModifiersChanged((empty)) }
[8.612492400s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: Focused(false) }
[8.614745600s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: Destroyed }
[8.616486800s] [INFO ] [alacritty] glutin event: MainEventsCleared
[8.617854100s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[8.618584000s] [INFO ] [alacritty] glutin event: LoopDestroyed

--print-events output for rc2:

PS D:\Installs\Programming\Alacritty> .\Alacritty-v0.11.0-rc2-portable.exe --print-events --command C:\Windows\System32\wsl.exe
PS D:\Installs\Programming\Alacritty> Created log file at "C:\Users\Ilya\AppData\Local\Temp\Alacritty-1688.log"
[0.000002600s] [INFO ] [alacritty] Welcome to Alacritty
[0.000338800s] [INFO ] [alacritty] Version 0.11.0-rc2 (f4ce3ff)
[0.002167900s] [INFO ] [alacritty] Configuration files loaded from:
                                     "C:\\Users\\Ilya\\AppData\\Roaming\\alacritty\\alacritty.yml"
[0.002887800s] [INFO ] [alacritty] glutin event: NewEvents(Init)
[0.003003200s] [INFO ] [alacritty] glutin event: Resumed
[0.092910300s] [INFO ] [alacritty] Running on NVIDIA GeForce RTX 3080/PCIe/SSE2
[0.093059300s] [INFO ] [alacritty] Using OpenGL 3.3 renderer
[0.096538200s] [INFO ] [alacritty] Display scale factor: 1.5
[0.097749700s] [INFO ] [alacritty] Cell size: 12 x 24
[0.097846600s] [INFO ] [alacritty] Padding: 0 x 0
[0.097925600s] [INFO ] [alacritty] Width: 800, Height: 600
[0.129361500s] [INFO ] [alacritty] PTY dimensions: 25 x 66
[0.133163100s] [INFO ] [alacritty] Initialisation complete
[0.133276600s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: Resized(PhysicalSize { width: 800, height: 600 }) }
[0.133447800s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 28, state: Released, virtual_keycode: Some(Return), modifiers: (empty) }, is_synthetic: true } }
[0.133578300s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: Focused(true) }
[0.133728000s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: Resized(PhysicalSize { width: 800, height: 600 }) }
[0.133967900s] [INFO ] [alacritty] glutin event: DeviceEvent { device_id: DeviceId(DeviceId(66483)), event: Added }
[0.134098200s] [INFO ] [alacritty] glutin event: DeviceEvent { device_id: DeviceId(DeviceId(65612)), event: Added }
[0.134207900s] [INFO ] [alacritty] glutin event: DeviceEvent { device_id: DeviceId(DeviceId(131146)), event: Added }
[0.134351500s] [INFO ] [alacritty] glutin event: DeviceEvent { device_id: DeviceId(DeviceId(66481)), event: Added }
[0.134505000s] [INFO ] [alacritty] glutin event: DeviceEvent { device_id: DeviceId(DeviceId(65599)), event: Added }
[0.134611100s] [INFO ] [alacritty] glutin event: DeviceEvent { device_id: DeviceId(DeviceId(65597)), event: Added }
[0.134795200s] [INFO ] [alacritty] glutin event: MainEventsCleared
[0.134900000s] [INFO ] [alacritty] glutin event: RedrawRequested(WindowId(WindowId(2100774)))
[0.134981700s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[0.135084000s] [INFO ] [alacritty] Padding: 0 x 0
[0.135181100s] [INFO ] [alacritty] Width: 800, Height: 600
[0.230191400s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42044.8880033s }, requested_resume: None })
[0.230649300s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(2100774))), payload: Terminal(Title(C:\Windows\System32\wsl.exe)) })
[0.231216700s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(2100774))), payload: Terminal(Wakeup) })
[0.231387100s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(2100774))), payload: Terminal(Wakeup) })
[0.231512000s] [INFO ] [alacritty] glutin event: MainEventsCleared
[0.231768400s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[1.327088900s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42044.9847035s }, requested_resume: None })
[1.327332500s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(2100774))), payload: Terminal(Title(/m/d/I/P/Alacritty)) })
[1.327563700s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(2100774))), payload: Terminal(Wakeup) })
[1.327727000s] [INFO ] [alacritty] glutin event: MainEventsCleared
[1.327825800s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[1.338429500s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42046.0807429s }, requested_resume: None })
[1.338840600s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(2100774))), payload: Terminal(Wakeup) })
[1.339072000s] [INFO ] [alacritty] glutin event: MainEventsCleared
[1.339182600s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[1.354411800s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42046.0919857s }, requested_resume: None })
[1.354673500s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(2100774))), payload: Terminal(Wakeup) })
[1.354869800s] [INFO ] [alacritty] glutin event: MainEventsCleared
[1.354982700s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[2.264239700s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42046.1079773s }, requested_resume: None })
[2.264470300s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 20, state: Pressed, virtual_keycode: Some(T), modifiers: (empty) }, is_synthetic: false } }
[2.264707800s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: ReceivedCharacter('t') }
[2.264885600s] [INFO ] [alacritty] glutin event: MainEventsCleared
[2.264972000s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[2.265656100s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42047.0177088s }, requested_resume: None })
[2.265799900s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(2100774))), payload: Terminal(Wakeup) })
[2.265926200s] [INFO ] [alacritty] glutin event: MainEventsCleared
[2.266014200s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[2.278384000s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42047.0188238s }, requested_resume: None })
[2.279625700s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(2100774))), payload: Terminal(Wakeup) })
[2.279830700s] [INFO ] [alacritty] glutin event: MainEventsCleared
[2.279946000s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[2.344551100s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42047.0327769s }, requested_resume: None })
[2.344780100s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(2100774))), payload: Terminal(Wakeup) })
[2.345067700s] [INFO ] [alacritty] glutin event: MainEventsCleared
[2.345164300s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[2.356980300s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42047.0979704s }, requested_resume: None })
[2.357295600s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(2100774))), payload: Terminal(Wakeup) })
[2.357545800s] [INFO ] [alacritty] glutin event: MainEventsCleared
[2.357690600s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[2.361882200s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42047.1105405s }, requested_resume: None })
[2.361996700s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 20, state: Released, virtual_keycode: Some(T), modifiers: (empty) }, is_synthetic: false } }
[2.362117200s] [INFO ] [alacritty] glutin event: MainEventsCleared
[2.362207500s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[2.537907700s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42047.1149292s }, requested_resume: None })
[2.538134900s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 18, state: Pressed, virtual_keycode: Some(E), modifiers: (empty) }, is_synthetic: false } }
[2.538399900s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: ReceivedCharacter('e') }
[2.538576200s] [INFO ] [alacritty] glutin event: MainEventsCleared
[2.538663000s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[2.539273700s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42047.2913925s }, requested_resume: None })
[2.539401000s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(2100774))), payload: Terminal(Wakeup) })
[2.539531900s] [INFO ] [alacritty] glutin event: MainEventsCleared
[2.539735500s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[2.555912500s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42047.2926189s }, requested_resume: None })
[2.557220700s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(2100774))), payload: Terminal(Wakeup) })
[2.557881800s] [INFO ] [alacritty] glutin event: MainEventsCleared
[2.558777000s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[2.639907100s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42047.3120406s }, requested_resume: None })
[2.640134000s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 18, state: Released, virtual_keycode: Some(E), modifiers: (empty) }, is_synthetic: false } }
[2.643980500s] [INFO ] [alacritty] glutin event: MainEventsCleared
[2.644467700s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[2.785269800s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42047.3997476s }, requested_resume: None })
[2.785476600s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(2100774))), payload: Terminal(Wakeup) })
[2.789513400s] [INFO ] [alacritty] glutin event: MainEventsCleared
[2.790010400s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[2.808529200s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42047.5432824s }, requested_resume: None })
[2.809111400s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(2100774))), payload: Terminal(Wakeup) })
[2.809690200s] [INFO ] [alacritty] glutin event: MainEventsCleared
[2.811157400s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[3.437203200s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42047.5643634s }, requested_resume: None })
[3.437492800s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 31, state: Pressed, virtual_keycode: Some(S), modifiers: (empty) }, is_synthetic: false } }
[3.441021800s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: ReceivedCharacter('s') }
[3.441616100s] [INFO ] [alacritty] glutin event: MainEventsCleared
[3.443910700s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[3.445033600s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42048.1970573s }, requested_resume: None })
[3.445156400s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(2100774))), payload: Terminal(Wakeup) })
[3.447388000s] [INFO ] [alacritty] glutin event: MainEventsCleared
[3.447949100s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[3.457719900s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42048.2011884s }, requested_resume: None })
[3.459217100s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(2100774))), payload: Terminal(Wakeup) })
[3.459954000s] [INFO ] [alacritty] glutin event: MainEventsCleared
[3.462382800s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[3.612938500s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42048.2156089s }, requested_resume: None })
[3.613179400s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 31, state: Released, virtual_keycode: Some(S), modifiers: (empty) }, is_synthetic: false } }
[3.617446400s] [INFO ] [alacritty] glutin event: MainEventsCleared
[3.617929200s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[3.641685300s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42048.3716184s }, requested_resume: None })
[3.641875500s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(2100774))), payload: Terminal(Wakeup) })
[3.642494500s] [INFO ] [alacritty] glutin event: MainEventsCleared
[3.643066100s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[3.662713900s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42048.3962982s }, requested_resume: None })
[3.662974400s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(2100774))), payload: Terminal(Wakeup) })
[3.666727500s] [INFO ] [alacritty] glutin event: MainEventsCleared
[3.667301200s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[4.032902000s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42048.4206087s }, requested_resume: None })
[4.033172700s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 20, state: Pressed, virtual_keycode: Some(T), modifiers: (empty) }, is_synthetic: false } }
[4.037201800s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: ReceivedCharacter('t') }
[4.037844000s] [INFO ] [alacritty] glutin event: MainEventsCleared
[4.040237300s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[4.041254000s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42048.7933499s }, requested_resume: None })
[4.041360300s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(2100774))), payload: Terminal(Wakeup) })
[4.041870500s] [INFO ] [alacritty] glutin event: MainEventsCleared
[4.042322400s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[4.053654500s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42048.795513s }, requested_resume: None })
[4.054760000s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(2100774))), payload: Terminal(Wakeup) })
[4.055309000s] [INFO ] [alacritty] glutin event: MainEventsCleared
[4.057578900s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[4.144948000s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42048.8108917s }, requested_resume: None })
[4.145238300s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 20, state: Released, virtual_keycode: Some(T), modifiers: (empty) }, is_synthetic: false } }
[4.149128800s] [INFO ] [alacritty] glutin event: MainEventsCleared
[4.149651500s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[5.464286800s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42048.9048304s }, requested_resume: None })
[5.464612600s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: ModifiersChanged(ALT) }
[5.470385100s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 56, state: Pressed, virtual_keycode: Some(LAlt), modifiers: ALT }, is_synthetic: false } }
[5.471167000s] [INFO ] [alacritty] glutin event: MainEventsCleared
[5.476013700s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[5.965244500s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42050.2292317s }, requested_resume: None })
[5.965589100s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 56, state: Pressed, virtual_keycode: Some(LAlt), modifiers: ALT }, is_synthetic: false } }
[5.971564600s] [INFO ] [alacritty] glutin event: MainEventsCleared
[5.972300400s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[6.012605700s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42050.7294448s }, requested_resume: None })
[6.012881000s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 56, state: Pressed, virtual_keycode: Some(LAlt), modifiers: ALT }, is_synthetic: false } }
[6.021932400s] [INFO ] [alacritty] glutin event: MainEventsCleared
[6.022649800s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[6.044697600s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42050.7766773s }, requested_resume: None })
[6.045017300s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 56, state: Pressed, virtual_keycode: Some(LAlt), modifiers: ALT }, is_synthetic: false } }
[6.053957000s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 48, state: Pressed, virtual_keycode: Some(B), modifiers: ALT }, is_synthetic: false } }
[6.055259000s] [INFO ] [alacritty] glutin event: MainEventsCleared
[6.055967400s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[6.182945000s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42050.8090536s }, requested_resume: None })
[6.183178900s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 48, state: Released, virtual_keycode: Some(B), modifiers: ALT }, is_synthetic: false } }
[6.185609100s] [INFO ] [alacritty] glutin event: MainEventsCleared
[6.189838400s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[6.348917400s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42050.9430236s }, requested_resume: None })
[6.349204000s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: ModifiersChanged((empty)) }
[6.355147000s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 56, state: Released, virtual_keycode: Some(LAlt), modifiers: (empty) }, is_synthetic: false } }
[6.356314800s] [INFO ] [alacritty] glutin event: MainEventsCleared
[6.360420500s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[8.048878800s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42051.1136144s }, requested_resume: None })
[8.049169000s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: ModifiersChanged(CTRL) }
[8.051444400s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 29, state: Pressed, virtual_keycode: Some(LControl), modifiers: CTRL }, is_synthetic: false } }
[8.056051200s] [INFO ] [alacritty] glutin event: MainEventsCleared
[8.057613400s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[8.415798300s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42052.8140737s }, requested_resume: None })
[8.416048000s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 18, state: Pressed, virtual_keycode: Some(E), modifiers: CTRL }, is_synthetic: false } }
[8.421783100s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: ReceivedCharacter('\u{5}') }
[8.422461200s] [INFO ] [alacritty] glutin event: MainEventsCleared
[8.427282000s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[8.428541800s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42053.1804147s }, requested_resume: None })
[8.429099600s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(2100774))), payload: Terminal(Wakeup) })
[8.436256100s] [INFO ] [alacritty] glutin event: MainEventsCleared
[8.436756100s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[8.556859200s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42053.1942696s }, requested_resume: None })
[8.557078900s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 18, state: Released, virtual_keycode: Some(E), modifiers: CTRL }, is_synthetic: false } }
[8.562565500s] [INFO ] [alacritty] glutin event: MainEventsCleared
[8.563102600s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[8.719160600s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42053.321176s }, requested_resume: None })
[8.719439900s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: ModifiersChanged((empty)) }
[8.725050500s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 29, state: Released, virtual_keycode: Some(LControl), modifiers: (empty) }, is_synthetic: false } }
[8.725871200s] [INFO ] [alacritty] glutin event: MainEventsCleared
[8.734442800s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[9.016833700s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42053.4875808s }, requested_resume: None })
[9.017097500s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: ModifiersChanged(CTRL) }
[9.022952600s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 29, state: Pressed, virtual_keycode: Some(LControl), modifiers: CTRL }, is_synthetic: false } }
[9.023761400s] [INFO ] [alacritty] glutin event: MainEventsCleared
[9.028415500s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[9.530642900s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42053.7815656s }, requested_resume: None })
[9.530950100s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 29, state: Pressed, virtual_keycode: Some(LControl), modifiers: CTRL }, is_synthetic: false } }
[9.536944900s] [INFO ] [alacritty] glutin event: MainEventsCleared
[9.537596800s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[9.559928900s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42054.2952947s }, requested_resume: None })
[9.560224900s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 22, state: Pressed, virtual_keycode: Some(U), modifiers: CTRL }, is_synthetic: false } }
[9.560869600s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: ReceivedCharacter('\u{15}') }
[9.564632000s] [INFO ] [alacritty] glutin event: MainEventsCleared
[9.571286500s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[9.572624400s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42054.3244728s }, requested_resume: None })
[9.572854700s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(2100774))), payload: Terminal(Wakeup) })
[9.573383800s] [INFO ] [alacritty] glutin event: MainEventsCleared
[9.573838900s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[9.685964000s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42054.3272128s }, requested_resume: None })
[9.686279200s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 22, state: Released, virtual_keycode: Some(U), modifiers: CTRL }, is_synthetic: false } }
[9.692189000s] [INFO ] [alacritty] glutin event: MainEventsCleared
[9.693126900s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[9.929900600s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42054.4505908s }, requested_resume: None })
[9.930149000s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: ModifiersChanged((empty)) }
[9.935759100s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 29, state: Released, virtual_keycode: Some(LControl), modifiers: (empty) }, is_synthetic: false } }
[9.936496300s] [INFO ] [alacritty] glutin event: MainEventsCleared
[9.943560400s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[10.281823100s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42054.7040483s }, requested_resume: None })
[10.282055400s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: ModifiersChanged(CTRL) }
[10.287833500s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 29, state: Pressed, virtual_keycode: Some(LControl), modifiers: CTRL }, is_synthetic: false } }
[10.288532500s] [INFO ] [alacritty] glutin event: MainEventsCleared
[10.293437000s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[10.633765500s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42055.0465913s }, requested_resume: None })
[10.634081100s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 32, state: Pressed, virtual_keycode: Some(D), modifiers: CTRL }, is_synthetic: false } }
[10.639765300s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: ReceivedCharacter('\u{4}') }
[10.640552600s] [INFO ] [alacritty] glutin event: MainEventsCleared
[10.645978700s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[10.649476900s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42055.4015323s }, requested_resume: None })
[10.654745100s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(2100774))), payload: Terminal(Wakeup) })
[10.656700300s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(2100774))), payload: Terminal(Exit) })
[10.660463300s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(2100774))), payload: Terminal(Wakeup) })
[10.662369600s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 29, state: Released, virtual_keycode: None, modifiers: CTRL }, is_synthetic: true } }
[10.666419400s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 32, state: Released, virtual_keycode: Some(D), modifiers: CTRL }, is_synthetic: true } }
[10.666743600s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 29, state: Released, virtual_keycode: Some(LControl), modifiers: CTRL }, is_synthetic: true } }
[10.666938200s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: ModifiersChanged((empty)) }
[10.667080600s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: Focused(false) }
[10.669473600s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: Destroyed }
[10.675506700s] [INFO ] [alacritty] glutin event: MainEventsCleared
[10.675904900s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[10.677133800s] [INFO ] [alacritty] glutin event: LoopDestroyed

Here are the same logs, but with most of the "randomness" removed. Better suited for a side-by-side diffing, though some randomness is still present due to the event ordering.

Less random rc1 log: https://gist.github.com/ilya-bobyr/acc3cd79ef0fc50ffec4be94adf37c7b

Less random rc2 log: https://gist.github.com/ilya-bobyr/824ea9ecd1092ffc2b05704cb727aef3

Except for comments, my config contains the following:

env:
  TERM: alacritty

font:
  normal:
    family: FiraCode NF
    style: Regular

  bold:
    family: FiraCode NF
    style: Bold

  italic:
    family: FiraCode NF
    style: Italic

  bold_italic:
    family: FiraCode NF
    style: Bold Italic

  size: 10.0
@okuma10
Copy link

okuma10 commented Sep 26, 2022

Just saying that alt key isn't working on my end as well(Win10). It looks like Alacritty is registering the Alt key but nothing happens in NeoVim. Trying other terminals (cmder, tabby, cmd, and QtNvim) all register the alt key and apply the keymap I have in nvim.
Only Tabby was giving me some issues but overall worked with small adjustment but still working with Alt.

@chrisduerr
Copy link
Member

Is it just ALT+B, or are no alt keys working? It looks like the key isn't even received by Alacritty.

@ilya-bobyr
Copy link
Contributor Author

It does not seem that any key is sent into WSL when it is modified with
Alt. At the same time, I see the mouse cursor blinking every time I press
Alt+Something. At first, I thought that it is sending those keys into the
window menu or something like that. But no window level menu is active.

Based on the change list between rc1 and rc2, I assumed it might be related
to the IME changes. But the source diff is so small and does not seem to
contain anything suspicious:
v0.11.0-rc1...v0.11.0-rc2

I do see Alt+B in the rc2 log:

[5.464612600s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: ModifiersChanged(ALT) }
[5.470385100s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 56, state: Pressed, virtual_keycode: Some(LAlt), modifiers: ALT }, is_synthetic: false } }
[5.471167000s] [INFO ] [alacritty] glutin event: MainEventsCleared
[5.476013700s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[5.965244500s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42050.2292317s }, requested_resume: None })
[5.965589100s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 56, state: Pressed, virtual_keycode: Some(LAlt), modifiers: ALT }, is_synthetic: false } }
[5.971564600s] [INFO ] [alacritty] glutin event: MainEventsCleared
[5.972300400s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[6.012605700s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42050.7294448s }, requested_resume: None })
[6.012881000s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 56, state: Pressed, virtual_keycode: Some(LAlt), modifiers: ALT }, is_synthetic: false } }
[6.021932400s] [INFO ] [alacritty] glutin event: MainEventsCleared
[6.022649800s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[6.044697600s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42050.7766773s }, requested_resume: None })
[6.045017300s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 56, state: Pressed, virtual_keycode: Some(LAlt), modifiers: ALT }, is_synthetic: false } }
[6.053957000s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 48, state: Pressed, virtual_keycode: Some(B), modifiers: ALT }, is_synthetic: false } }
[6.055259000s] [INFO ] [alacritty] glutin event: MainEventsCleared
[6.055967400s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[6.182945000s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42050.8090536s }, requested_resume: None })
[6.183178900s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 48, state: Released, virtual_keycode: Some(B), modifiers: ALT }, is_synthetic: false } }
[6.185609100s] [INFO ] [alacritty] glutin event: MainEventsCleared
[6.189838400s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[6.348917400s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 42050.9430236s }, requested_resume: None })
[6.349204000s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: ModifiersChanged((empty)) }
[6.355147000s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 56, state: Released, virtual_keycode: Some(LAlt), modifiers: (empty) }, is_synthetic: false } }
[6.356314800s] [INFO ] [alacritty] glutin event: MainEventsCleared
[6.360420500s] [INFO ] [alacritty] glutin event: RedrawEventsCleared

Cleaning it up a bit it seems to boil down to this:

[5.464612600s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: ModifiersChanged(ALT) }
[5.470385100s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 56, state: Pressed, virtual_keycode: Some(LAlt), modifiers: ALT }, is_synthetic: false } }
[5.965589100s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 56, state: Pressed, virtual_keycode: Some(LAlt), modifiers: ALT }, is_synthetic: false } }
[6.012881000s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 56, state: Pressed, virtual_keycode: Some(LAlt), modifiers: ALT }, is_synthetic: false } }
[6.045017300s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 56, state: Pressed, virtual_keycode: Some(LAlt), modifiers: ALT }, is_synthetic: false } }
[6.053957000s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 48, state: Pressed, virtual_keycode: Some(B), modifiers: ALT }, is_synthetic: false } }
[6.183178900s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 48, state: Released, virtual_keycode: Some(B), modifiers: ALT }, is_synthetic: false } }
[6.355147000s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(2100774)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 56, state: Released, virtual_keycode: Some(LAlt), modifiers: (empty) }, is_synthetic: false } }

rc1 log shows this:

[4.567512500s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41939.1991345s }, requested_resume: None })
[4.567783300s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: ModifiersChanged(ALT) }
[4.569243300s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 56, state: Pressed, virtual_keycode: Some(LAlt), modifiers: ALT }, is_synthetic: false } }
[4.570881300s] [INFO ] [alacritty] glutin event: MainEventsCleared
[4.571403400s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[4.763887200s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41939.379871s }, requested_resume: None })
[4.764161300s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 48, state: Pressed, virtual_keycode: Some(B), modifiers: ALT }, is_synthetic: false } }
[4.765765400s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: ReceivedCharacter('b') }
[4.767197300s] [INFO ] [alacritty] glutin event: MainEventsCleared
[4.767697300s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[4.771153100s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41939.5762564s }, requested_resume: None })
[4.771289600s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Wakeup) })
[4.771792400s] [INFO ] [alacritty] glutin event: MainEventsCleared
[4.772498200s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[4.875537800s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41939.5786427s }, requested_resume: None })
[4.875754700s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 48, state: Released, virtual_keycode: Some(B), modifiers: ALT }, is_synthetic: false } }
[4.877284000s] [INFO ] [alacritty] glutin event: MainEventsCleared
[4.878632400s] [INFO ] [alacritty] glutin event: RedrawEventsCleared
[5.046571400s] [INFO ] [alacritty] glutin event: NewEvents(WaitCancelled { start: Instant { t: 41939.6847501s }, requested_resume: None })
[5.046836700s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: ModifiersChanged((empty)) }
[5.048759400s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 56, state: Released, virtual_keycode: Some(LAlt), modifiers: (empty) }, is_synthetic: false } }
[5.050351600s] [INFO ] [alacritty] glutin event: MainEventsCleared

Cleaned up it is:

[4.567783300s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: ModifiersChanged(ALT) }
[4.569243300s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 56, state: Pressed, virtual_keycode: Some(LAlt), modifiers: ALT }, is_synthetic: false } }
[4.764161300s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 48, state: Pressed, virtual_keycode: Some(B), modifiers: ALT }, is_synthetic: false } }
[4.765765400s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: ReceivedCharacter('b') }
[4.771289600s] [INFO ] [alacritty] glutin event: UserEvent(Event { window_id: Some(WindowId(WindowId(1376978))), payload: Terminal(Wakeup) })
[4.875754700s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 48, state: Released, virtual_keycode: Some(B), modifiers: ALT }, is_synthetic: false } }
[5.046836700s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: ModifiersChanged((empty)) }
[5.048759400s] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(WindowId(1376978)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), input: KeyboardInput { scancode: 56, state: Released, virtual_keycode: Some(LAlt), modifiers: (empty) }, is_synthetic: false } }

The big difference, it seems that for rc2, key press is only delivered as a
KeyboardInput event, while for rc1, it is also delivered as a
ReceivedCharacter event.

ReceivedCharacter docs say:

ReceivedCharacter(char)

The window received a unicode character.

See also the Ime event for more complex character sequences.

And the Ime docs say:

An event from an input method.

Note: You have to explicitly enable this event using
[Window::set_ime_allowed].

I am not using IME, and I do not see any changes in the calls to
set_ime_allowed(), but could it be still related?

I may try compiling a local version and bisecting changes between rc1 and
rc2, but do not realy on me, as I've never done it before and not sure how
much effort would it be.

@ilya-bobyr
Copy link
Contributor Author

There are changes in the versions of some of the dependencies between rc1 and rc2: v0.11.0-rc1...v0.11.0-rc2#diff-13ee4b2252

But, glutin version is not changed.

@chrisduerr
Copy link
Member

But, glutin version is not changed.

Winit version is, that's likely the problem. I'd be curious if someone could maybe bisect in winit.

The big difference, it seems that for rc2, key press is only delivered as a
KeyboardInput event, while for rc1, it is also delivered as a
ReceivedCharacter event.

Yeah, the ReceivedCharacter event is what we actually need. As a temporary fix you could manually add a binding to your config that sends the characters, but I'd rather not release the RC with this breakage.

@ilya-bobyr
Copy link
Contributor Author

ilya-bobyr commented Sep 27, 2022

Here is a change in winit where they stopped emitting the ReceivedCharacter events for Alt+key combinations:

Windows: Update handling of system keypresses #2445

This change description says:

On Windows, fixed ALT+Space shortcut to open window menu.

Though, it does not provide the reasoning for changing behavior for other Alt+key combinations.

Part of the v0.27.3 release: rust-windowing/winit@v0.27.2...v0.27.3

Windows sends a special WM_SYSCHAR message in response to an Alt+key press, unlike the WM_CHAR message used for printable characters.

I am running a head build of Alacrity on my Ubuntu systems as well. As there was no breakage there, I assume, on Unix platforms winit does send ReceivedCharacter when Alt is held.

I've left a comment in the corresponding winit issue, as it seems to be breaking winit portability across platforms.

@Palpatineli
Copy link

I am having the same issue with sending Alt keys not just in wsl2 but in powershell + ssh. Additionally, for some reason in wsl2 I also can't type the letter s in bash (but it's working in editors and such, and in powershell + ssh + bash it's not a problem).

@ilya-bobyr
Copy link
Contributor Author

For Alt - it is a regression in winit, see rust-windowing/winit#2504 for details.
There is an attempt in winit to match Windows keyboard handing semantics better, but it is, unfortunately, incompatible with Unix and MacOS semantics.
Currently, the suggested solution is to revert the change.
My guess is that it will take some time for the change in winit and the next RC of Alactritty will include the fix.

An alternative would be to downgrade winit to 0.27.2.
But the bump PR (#6326) says that it fixes two issues.
And as winit seems to be working on a fix, it does not seem like a reasonable thing to do at the moment.

s issue should be unrelated, as the change in winit only affected handling of Alt on Windows.
@Palpatineli, you may want to create a new issue with regard to s, and provide event logs, as suggested in the new issue template.

@kchibisov
Copy link
Member

It could help if the patch that was proposed in winit could be tested with alacritty, but it could require some knowledge to handle it. Mostly you need to cherry-pick that patch into winit release branch and start from there.

kchibisov added a commit to kchibisov/alacritty that referenced this issue Oct 9, 2022
chrisduerr pushed a commit that referenced this issue Oct 9, 2022
chrisduerr pushed a commit to chrisduerr/alacritty that referenced this issue Oct 9, 2022
chrisduerr pushed a commit that referenced this issue Oct 9, 2022
chrisduerr pushed a commit to chrisduerr/alacritty that referenced this issue Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

5 participants