mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 15:13:13 -04:00
On X11, use events modifiers to detect state
While there's a separate event to deliver modifiers for keyboard, unfortunately, it's not even remotely reflects the modifiers state. Thus use events along side regular modifier updates to correctly detect the state. Also, apply the modifiers from the regular key event by converting their state to xkb modifiers state. Links: https://github.com/alacritty/alacritty/issues/7549 Closes: #3388
This commit is contained in:
1051
src/platform_impl/linux/common/xkb/keymap.rs
Normal file
1051
src/platform_impl/linux/common/xkb/keymap.rs
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user