Skip to content

Commit 6198631

Browse files
madsmtmpyfisch
authored andcommitted
Note that "super" is often emitted as Meta on Linux/XKB
1 parent b82feeb commit 6198631

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
@@ -120,6 +120,8 @@ def convert_key(text, file):
120120
[]
121121
])
122122

123+
add_comment_to(display, 'Meta', 'In Linux (XKB) terminology, this is often referred to as "Super".')
124+
123125
emit_enum_entries(display, file)
124126
print("}", file=file)
125127

@@ -228,6 +230,8 @@ def convert_code(text, file):
228230

229231
add_comment_to(display, 'Backquote', 'This is also called a backtick or grave.')
230232
add_comment_to(display, 'Quote', 'This is also called an apostrophe.')
233+
add_comment_to(display, 'MetaLeft', 'In Linux (XKB) terminology, this is often referred to as the left "Super".')
234+
add_comment_to(display, 'MetaRight', 'In Linux (XKB) terminology, this is often referred to as the right "Super".')
231235

232236
add_alternative_for(display, 'MetaLeft', 'OSLeft')
233237
add_alternative_for(display, 'MetaRight', 'OSRight')

src/code.rs

+2
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,10 @@ pub enum Code {
154154
/// <kbd>Enter</kbd> or <kbd>↵</kbd>. Labelled <kbd>Return</kbd> on Apple keyboards.
155155
Enter,
156156
/// The Windows, <kbd>⌘</kbd>, <kbd>Command</kbd> or other OS symbol key.
157+
/// In Linux (XKB) terminology, this is often referred to as the left "Super".
157158
MetaLeft,
158159
/// The Windows, <kbd>⌘</kbd>, <kbd>Command</kbd> or other OS symbol key.
160+
/// In Linux (XKB) terminology, this is often referred to as the right "Super".
159161
MetaRight,
160162
/// <kbd>Shift</kbd> or <kbd>⇧</kbd>
161163
ShiftLeft,

src/named_key.rs

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ pub enum NamedKey {
4040
FnLock,
4141
/// The <kbd>Meta</kbd> key, to enable meta modifier function for interpreting concurrent or subsequent keyboard input.
4242
/// This key value is used for the <q>Windows Logo</q> key and the Apple <kbd>Command</kbd> or <kbd>⌘</kbd> key.
43+
/// In Linux (XKB) terminology, this is often referred to as "Super".
4344
Meta,
4445
/// The <kbd>NumLock</kbd> or Number Lock key, to toggle numpad mode function for interpreting subsequent keyboard input.
4546
NumLock,

0 commit comments

Comments
 (0)