From 8e7bd2b7461f7a7dab5ca64d2d40825685b23870 Mon Sep 17 00:00:00 2001 From: Jim Eckerlein Date: Thu, 8 Jun 2023 19:40:40 +0200 Subject: [PATCH] Add doc aliases `Win`, `Meta`, and `Logo` --- crates/bevy_input/src/keyboard.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/bevy_input/src/keyboard.rs b/crates/bevy_input/src/keyboard.rs index eb568019a7874..e25e4af113cc3 100644 --- a/crates/bevy_input/src/keyboard.rs +++ b/crates/bevy_input/src/keyboard.rs @@ -329,6 +329,7 @@ pub enum KeyCode { /// The `LSuper` / `Left Super` key. /// Generic keyboards usually display this key with the *Microsoft Windows* logo. /// Apple keyboards call this key the *Command Key* and display it using the ⌘ character. + #[doc(alias("LWin", "LMeta", "LLogo"))] LSuper, /// The `Mail` key. @@ -381,6 +382,7 @@ pub enum KeyCode { /// The `RSuper` / `Right Super` key. /// Generic keyboards usually display this key with the *Microsoft Windows* logo. /// Apple keyboards call this key the *Command Key* and display it using the ⌘ character. + #[doc(alias("RWin", "RMeta", "RLogo"))] RSuper, /// The `Semicolon` / `;` key.