mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 14:50:03 -04:00
Merge branch 'main' into ime-preedit-visuals
# Conflicts: # crates/egui/src/data/input.rs
This commit is contained in:
@@ -5,6 +5,10 @@ This file is updated upon each release.
|
||||
Changes since the last release can be found at <https://github.com/emilk/egui/compare/latest...HEAD> or by running the `scripts/generate_changelog.py` script.
|
||||
|
||||
|
||||
## 0.34.3 - 2026-05-27
|
||||
Nothing new
|
||||
|
||||
|
||||
## 0.34.2 - 2026-05-04
|
||||
Nothing new
|
||||
|
||||
|
||||
@@ -1600,6 +1600,22 @@ fn key_from_key_code(key: winit::keyboard::KeyCode) -> Option<egui::Key> {
|
||||
KeyCode::F34 => Key::F34,
|
||||
KeyCode::F35 => Key::F35,
|
||||
|
||||
// Modifier keys — egui now surfaces them as distinct physical
|
||||
// variants so games / capture UIs can bind them independently.
|
||||
// The collapsed `Modifiers.shift/ctrl/alt/command` booleans still
|
||||
// track just the "any side is pressed" state for shortcut matching.
|
||||
KeyCode::ShiftLeft => Key::ShiftLeft,
|
||||
KeyCode::ShiftRight => Key::ShiftRight,
|
||||
KeyCode::ControlLeft => Key::ControlLeft,
|
||||
KeyCode::ControlRight => Key::ControlRight,
|
||||
KeyCode::AltLeft => Key::AltLeft,
|
||||
KeyCode::AltRight => Key::AltRight,
|
||||
KeyCode::SuperLeft => Key::SuperLeft,
|
||||
KeyCode::SuperRight => Key::SuperRight,
|
||||
|
||||
// ISO 102nd key — `<>|` on French AZERTY, `\|` on UK QWERTY.
|
||||
KeyCode::IntlBackslash => Key::IntlBackslash,
|
||||
|
||||
_ => {
|
||||
return None;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user