Skip to content

Commit 3381e4a

Browse files
committed
rename AltGr to AltGraph
1 parent 1b18f39 commit 3381e4a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/kbd_ev_print.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub fn mod_state_side_agnostic_s(state: &ModifiersState) -> String {
4848
} else {
4949
s.push_str(" ")
5050
};
51-
if state.contains(ModifiersState::ALTGR) {
51+
if state.contains(ModifiersState::ALT_GRAPH) {
5252
s.push_str("⎇Gr")
5353
} else {
5454
s.push_str(" ")

src/platform_impl/windows/keyboard_layout.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ impl LayoutCache {
298298
pressed_mods.contains(ModifiersKeys::LALT)
299299
|| pressed_mods.contains(ModifiersKeys::RALT),
300300
);
301-
state.set(ModifiersState::ALTGR, is_altgr);
301+
state.set(ModifiersState::ALT_GRAPH, is_altgr);
302302

303303
// On Windows AltGr = RAlt + LCtrl, and OS sends artificial LCtrl key event, which needs to
304304
// be filtered out without touching "real" LCtrl events to allow separate bindings of

winit-core/src/keyboard.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1706,7 +1706,7 @@ bitflags! {
17061706
/// This is the "windows" key on PC and "command" key on Mac.
17071707
const META = 0b100 << 9;
17081708
/// The "AltGraph" key, usually used to insert symbols.
1709-
const ALTGR = 0b100 << 10;
1709+
const ALT_GRAPH = 0b100 << 10;
17101710
#[deprecated = "use META instead"]
17111711
const SUPER = Self::META.bits();
17121712
}

0 commit comments

Comments
 (0)