Add documentation to KeyCode for Mac users (#3331)
# Objective `KeyCode::*Win` and `KeyCode::*Alt` might be confusing for some Mac users. ## Solution Added some small documentation to clarify the mappings for those developing on a Mac. ## Additional Context Related issue: #3240
This commit is contained in:
parent
70c9165886
commit
add1818a05
@ -177,10 +177,12 @@ pub enum KeyCode {
|
|||||||
Grave,
|
Grave,
|
||||||
Kana,
|
Kana,
|
||||||
Kanji,
|
Kanji,
|
||||||
|
/// The left alt key. Maps to left option on Mac.
|
||||||
LAlt,
|
LAlt,
|
||||||
LBracket,
|
LBracket,
|
||||||
LControl,
|
LControl,
|
||||||
LShift,
|
LShift,
|
||||||
|
/// The left Windows key. Maps to left Command on Mac.
|
||||||
LWin,
|
LWin,
|
||||||
Mail,
|
Mail,
|
||||||
MediaSelect,
|
MediaSelect,
|
||||||
@ -201,10 +203,12 @@ pub enum KeyCode {
|
|||||||
PlayPause,
|
PlayPause,
|
||||||
Power,
|
Power,
|
||||||
PrevTrack,
|
PrevTrack,
|
||||||
|
/// The right alt key. Maps to right option on Mac.
|
||||||
RAlt,
|
RAlt,
|
||||||
RBracket,
|
RBracket,
|
||||||
RControl,
|
RControl,
|
||||||
RShift,
|
RShift,
|
||||||
|
/// The right Windows key. Maps to right Command on Mac.
|
||||||
RWin,
|
RWin,
|
||||||
Semicolon,
|
Semicolon,
|
||||||
Slash,
|
Slash,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user