@@ -1084,9 +1084,9 @@ fn key_from_named_key(named_key: winit::keyboard::NamedKey) -> Option<egui::Key>
10841084 NamedKey :: Insert => Key :: Insert ,
10851085 NamedKey :: Escape => Key :: Escape ,
10861086
1087- NamedKey :: Alt => Key :: Alt ,
1088- NamedKey :: Control => Key :: Control ,
1089- NamedKey :: Shift => Key :: Shift ,
1087+ NamedKey :: Alt => Key :: AltLeft ,
1088+ NamedKey :: Control => Key :: ControlLeft ,
1089+ NamedKey :: Shift => Key :: ShiftLeft ,
10901090
10911091 NamedKey :: CapsLock => Key :: CapsLock ,
10921092 NamedKey :: NumLock => Key :: NumLock ,
@@ -1163,11 +1163,11 @@ fn key_from_key_code(key: winit::keyboard::KeyCode) -> Option<egui::Key> {
11631163 KeyCode :: PageUp => Key :: PageUp ,
11641164 KeyCode :: PageDown => Key :: PageDown ,
11651165
1166- KeyCode :: AltLeft => Key :: Alt ,
1166+ KeyCode :: AltLeft => Key :: AltLeft ,
11671167 KeyCode :: AltRight => Key :: AltRight ,
1168- KeyCode :: ControlLeft => Key :: Control ,
1168+ KeyCode :: ControlLeft => Key :: ControlLeft ,
11691169 KeyCode :: ControlRight => Key :: ControlRight ,
1170- KeyCode :: ShiftLeft => Key :: Shift ,
1170+ KeyCode :: ShiftLeft => Key :: ShiftLeft ,
11711171 KeyCode :: ShiftRight => Key :: ShiftRight ,
11721172
11731173 KeyCode :: CapsLock => Key :: CapsLock ,
0 commit comments