From 5d263510f7b959caa561f931977001305662c71e Mon Sep 17 00:00:00 2001 From: Doonv <58695417+doonv@users.noreply.github.com> Date: Fri, 10 Nov 2023 20:16:53 +0200 Subject: [PATCH 1/3] Add Tilde name to KeyCode::Grave comment --- crates/bevy_input/src/keyboard.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_input/src/keyboard.rs b/crates/bevy_input/src/keyboard.rs index 924649e226f57..5a4c58c749e40 100644 --- a/crates/bevy_input/src/keyboard.rs +++ b/crates/bevy_input/src/keyboard.rs @@ -316,7 +316,7 @@ pub enum KeyCode { NumpadDivide, /// The `Equals` / `=` key. Equals, - /// The `Grave` / `Backtick` / `` ` `` key. + /// The `Grave` / `Backtick` / `Grave` / `` ` `` / `~` key. Grave, /// The `Kana` key. Kana, From 8f2df3cef76cae6dc4adedb023ba803f3b661631 Mon Sep 17 00:00:00 2001 From: Doonv <58695417+doonv@users.noreply.github.com> Date: Fri, 10 Nov 2023 20:21:42 +0200 Subject: [PATCH 2/3] Fix minor problemo Co-authored-by: Alice Cecile --- crates/bevy_input/src/keyboard.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_input/src/keyboard.rs b/crates/bevy_input/src/keyboard.rs index 5a4c58c749e40..d8607196188f2 100644 --- a/crates/bevy_input/src/keyboard.rs +++ b/crates/bevy_input/src/keyboard.rs @@ -316,7 +316,7 @@ pub enum KeyCode { NumpadDivide, /// The `Equals` / `=` key. Equals, - /// The `Grave` / `Backtick` / `Grave` / `` ` `` / `~` key. + /// The `Grave` / `Backtick` / `Tilde` / `` ` `` / `~` key. Grave, /// The `Kana` key. Kana, From 824c9c95bff661a196f129194e4a4359e051a734 Mon Sep 17 00:00:00 2001 From: Doonv <58695417+doonv@users.noreply.github.com> Date: Sat, 11 Nov 2023 11:47:32 +0200 Subject: [PATCH 3/3] Add Tilde doc alias for Grave --- crates/bevy_input/src/keyboard.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/bevy_input/src/keyboard.rs b/crates/bevy_input/src/keyboard.rs index d8607196188f2..c9704fab4bbfc 100644 --- a/crates/bevy_input/src/keyboard.rs +++ b/crates/bevy_input/src/keyboard.rs @@ -317,6 +317,7 @@ pub enum KeyCode { /// The `Equals` / `=` key. Equals, /// The `Grave` / `Backtick` / `Tilde` / `` ` `` / `~` key. + #[doc(alias = "Tilde")] Grave, /// The `Kana` key. Kana,