Skip to content

Note that "super" is often emitted as Meta on Linux #68

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ def convert_key(text, file):
[]
])

add_comment_to(display, 'Meta', 'In Linux (XKB) terminology, this is often referred to as "Super".')

emit_enum_entries(display, file)
print("}", file=file)

Expand Down Expand Up @@ -228,6 +230,8 @@ def convert_code(text, file):

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

add_alternative_for(display, 'MetaLeft', 'OSLeft')
add_alternative_for(display, 'MetaRight', 'OSRight')
Expand Down
2 changes: 2 additions & 0 deletions src/code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,10 @@ pub enum Code {
/// <kbd>Enter</kbd> or <kbd>↵</kbd>. Labelled <kbd>Return</kbd> on Apple keyboards.
Enter,
/// The Windows, <kbd>⌘</kbd>, <kbd>Command</kbd> or other OS symbol key.
/// In Linux (XKB) terminology, this is often referred to as the left "Super".
MetaLeft,
/// The Windows, <kbd>⌘</kbd>, <kbd>Command</kbd> or other OS symbol key.
/// In Linux (XKB) terminology, this is often referred to as the right "Super".
MetaRight,
/// <kbd>Shift</kbd> or <kbd>⇧</kbd>
ShiftLeft,
Expand Down
1 change: 1 addition & 0 deletions src/named_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ pub enum NamedKey {
FnLock,
/// The <kbd>Meta</kbd> key, to enable meta modifier function for interpreting concurrent or subsequent keyboard input.
/// This key value is used for the <q>Windows Logo</q> key and the Apple <kbd>Command</kbd> or <kbd>⌘</kbd> key.
/// In Linux (XKB) terminology, this is often referred to as "Super".
Meta,
/// The <kbd>NumLock</kbd> or Number Lock key, to toggle numpad mode function for interpreting subsequent keyboard input.
NumLock,
Expand Down