Skip to content

Instantly share code, notes, and snippets.

@spamwax
Created January 19, 2019 23:51
Show Gist options
  • Save spamwax/b0a4506ae97cb9163e124d216bdf5ed3 to your computer and use it in GitHub Desktop.
Save spamwax/b0a4506ae97cb9163e124d216bdf5ed3 to your computer and use it in GitHub Desktop.
key events of alacritty terminal (issue with Alt/Meta modifier)
[2019-01-19 18:50] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(140352698763008)), event: KeyboardInput { device_id: DeviceId(DeviceId), input: KeyboardInput { scancode: 58, state: Pressed, virtual_keycode: Some(LAlt), modifiers: ModifiersState { shift: false, ctrl: false, alt: true, logo: false } } } }
[2019-01-19 18:50] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(140352698763008)), event: KeyboardInput { device_id: DeviceId(DeviceId), input: KeyboardInput { scancode: 34, state: Pressed, virtual_keycode: Some(I), modifiers: ModifiersState { shift: false, ctrl: false, alt: true, logo: false } } } }
[2019-01-19 18:50] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(140352698763008)), event: KeyboardInput { device_id: DeviceId(DeviceId), input: KeyboardInput { scancode: 34, state: Released, virtual_keycode: Some(I), modifiers: ModifiersState { shift: false, ctrl: false, alt: true, logo: false } } } }
[2019-01-19 18:50] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(140352698763008)), event: KeyboardInput { device_id: DeviceId(DeviceId), input: KeyboardInput { scancode: 58, state: Released, virtual_keycode: Some(LAlt), modifiers: ModifiersState { shift: false, ctrl: false, alt: false, logo: false } } } }
[2019-01-19 18:50] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(140352698763008)), event: KeyboardInput { device_id: DeviceId(DeviceId), input: KeyboardInput { scancode: 11, state: Pressed, virtual_keycode: Some(B), modifiers: ModifiersState { shift: false, ctrl: false, alt: false, logo: false } } } }
[2019-01-19 18:50] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(140352698763008)), event: ReceivedCharacter('ˆ') }
[2019-01-19 18:50] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(140352698763008)), event: ReceivedCharacter('b') }
[2019-01-19 18:50] [INFO] glutin event: Awakened
[2019-01-19 18:50] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(140352698763008)), event: KeyboardInput { device_id: DeviceId(DeviceId), input: KeyboardInput { scancode: 11, state: Released, virtual_keycode: Some(B), modifiers: ModifiersState { shift: false, ctrl: false, alt: false, logo: false } } } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment