-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Pressing Alt on Windows discards key information #2945
Copy link
Copy link
Open
Labels
DS - win32Affects the Win32/Windows backendAffects the Win32/Windows backendH - help wantedSomeone please save usSomeone please save us
Description
It was brought to alacritty that pressing Alt+Ctrl+A doesn't work, as in there's no text users expect to get for Ctrl + A in such a case, moreover the logical_key looks like garbage in such scenario. The log from alacritty while pressing ctrl + shift + a with the new keyboard API:
[56.066942700s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(198608)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), event: KeyEvent { physical_key: ControlLeft, logical_key: Control, text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifers: None, key_without_modifiers: Control } }, is_synthetic: false } }
[56.362939800s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(198608)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), event: KeyEvent { physical_key: AltLeft, logical_key: Alt, text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifers: None, key_without_modifiers: Alt } }, is_synthetic: false } }
[56.586856100s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(198608)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), event: KeyEvent { physical_key: KeyA, logical_key: Unidentified(Windows(0x0041)), text: None, location: Standard, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifers: None, key_without_modifiers: Character("a") } }, is_synthetic: false } }
[56.650791800s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(198608)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), event: KeyEvent { physical_key: KeyA, logical_key: Unidentified(Windows(0x0041)), text: None, location: Standard, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifers: None, key_without_modifiers: Character("a") } }, is_synthetic: false } }
[56.770930200s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(198608)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), event: KeyEvent { physical_key: AltLeft, logical_key: Alt, text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifers: None, key_without_modifiers: Alt } }, is_synthetic: false } }
[56.914941500s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(198608)), event: KeyboardInput { device_id: DeviceId(DeviceId(0)), event: KeyEvent { physical_key: ControlLeft, logical_key: Control, text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifers: None, key_without_modifiers: Control } }, is_synthetic: false } }
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
DS - win32Affects the Win32/Windows backendAffects the Win32/Windows backendH - help wantedSomeone please save usSomeone please save us