Skip to content

Commit

Permalink
Add more event key modifiers for capslock, numlock & mode switch + IS…
Browse files Browse the repository at this point in the history
…O level 3 shift

* They are not directly used but should be here to allow user use them
  • Loading branch information
misak113 committed Jan 3, 2021
1 parent e6ae53a commit b362913
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions 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

0 comments on commit b362913

Please sign in to comment.