Skip to content

Commit 6d69a3f

Browse files
committed
Note that Super on Linux is often emitted as Meta
1 parent 3719e6a commit 6d69a3f

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

convert.py

+4
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ def convert_key(text, file):
118118
[]
119119
])
120120

121+
add_comment_to(display, 'Meta', 'This is often what <kbd>Super</kbd> on Linux translates to.')
122+
121123
emit_enum_entries(display, file)
122124
print("}", file=file)
123125

@@ -247,6 +249,8 @@ def convert_code(text, file):
247249

248250
add_comment_to(display, 'Backquote', 'This is also called a backtick or grave.')
249251
add_comment_to(display, 'Quote', 'This is also called an apostrophe.')
252+
add_comment_to(display, 'MetaLeft', 'This is often what the left <kbd>Super</kbd> on Linux translates to.')
253+
add_comment_to(display, 'MetaRight', 'This is often what the right <kbd>Super</kbd> on Linux translates to.')
250254

251255
add_alternative_for(display, 'MetaLeft', 'OSLeft')
252256
add_alternative_for(display, 'MetaRight', 'OSRight')

src/code.rs

+2
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,10 @@ pub enum Code {
153153
/// <kbd>Enter</kbd> or <kbd>↵</kbd>. Labelled <kbd>Return</kbd> on Apple keyboards.
154154
Enter,
155155
/// The Windows, <kbd>⌘</kbd>, <kbd>Command</kbd> or other OS symbol key.
156+
/// This is often what the left <kbd>Super</kbd> on Linux translates to.
156157
MetaLeft,
157158
/// The Windows, <kbd>⌘</kbd>, <kbd>Command</kbd> or other OS symbol key.
159+
/// This is often what the right <kbd>Super</kbd> on Linux translates to.
158160
MetaRight,
159161
/// <kbd>Shift</kbd> or <kbd>⇧</kbd>
160162
ShiftLeft,

src/key.rs

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ pub enum Key {
4444
FnLock,
4545
/// The <kbd>Meta</kbd> key, to enable meta modifier function for interpreting concurrent or subsequent keyboard input.
4646
/// This key value is used for the <q>Windows Logo</q> key and the Apple <kbd>Command</kbd> or <kbd>⌘</kbd> key.
47+
/// This is often what <kbd>Super</kbd> on Linux translates to.
4748
Meta,
4849
/// The <kbd>NumLock</kbd> or Number Lock key, to toggle numpad mode function for interpreting subsequent keyboard input.
4950
NumLock,

0 commit comments

Comments
 (0)