Skip to content

Draft: Mz mods #61

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
10 changes: 9 additions & 1 deletion event/key/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ const (
ModControl Modifiers = 1 << 1
ModAlt Modifiers = 1 << 2
ModMeta Modifiers = 1 << 3 // called "Command" on OS X

// CapsLock & NumLock is not a part of standard modifiers but has to be here to support all keyboard layouts
ModCapsLock Modifiers = 1 << 4
ModNumLock Modifiers = 1 << 5
ModModeSwitch Modifiers = 1 << 6 // Currently experimental. See https://wiki.archlinux.org/index.php/X_keyboard_extension
ModLevel3Shift Modifiers = 1 << 7 // Currently experimental. See https://wiki.archlinux.org/index.php/X_keyboard_extension

)

// Code is the identity of a key relative to a notional "standard" keyboard.
Expand Down Expand Up @@ -204,7 +211,8 @@ const (
CodeF23 Code = 114
CodeF24 Code = 115

CodeHelp Code = 117
CodeHelp Code = 117
CodeProps Code = 118 // alternatively Menu

CodeMute Code = 127
CodeVolumeUp Code = 128
Expand Down