mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 23:23:14 -04:00
Revise Key and KeyCode enums
Split `Key` into clear categories, like `Named`, `Dead`, Character`, `Unidentified` removing the `#[non_exhaustive]` from the `Key` itself. Similar action was done for the `KeyCode`. Fixes: #2995 Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
This commit is contained in:
@@ -1201,7 +1201,7 @@ impl<T: 'static> EventProcessor<T> {
|
||||
if keycode < KEYCODE_OFFSET as u32 {
|
||||
return;
|
||||
}
|
||||
let physical_key = keymap::raw_keycode_to_keycode(keycode);
|
||||
let physical_key = keymap::raw_keycode_to_physicalkey(keycode);
|
||||
|
||||
callback(Event::DeviceEvent {
|
||||
device_id,
|
||||
|
||||
Reference in New Issue
Block a user