Skip to content

Commit a8fc087

Browse files
committed
rename AltGr to AltGraph
1 parent ceb0d11 commit a8fc087

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
@@ -1705,7 +1705,7 @@ bitflags! {
17051705
/// This is the "windows" key on PC and "command" key on Mac.
17061706
const META = 0b100 << 9;
17071707
/// The "AltGraph" key, usually used to insert symbols.
1708-
const ALTGR = 0b100 << 10;
1708+
const ALT_GRAPH = 0b100 << 10;
17091709
#[deprecated = "use META instead"]
17101710
const SUPER = Self::META.bits();
17111711
}

0 commit comments

Comments
 (0)