We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6ae53a commit b362913Copy full SHA for b362913
event/key/key.go
@@ -78,6 +78,13 @@ const (
78
ModControl Modifiers = 1 << 1
79
ModAlt Modifiers = 1 << 2
80
ModMeta Modifiers = 1 << 3 // called "Command" on OS X
81
+
82
+ // CapsLock & NumLock is not a part of standard modifiers but has to be here to support all keyboard layouts
83
+ ModCapsLock Modifiers = 1 << 4
84
+ ModNumLock Modifiers = 1 << 5
85
+ ModModeSwitch Modifiers = 1 << 6 // Currently experimental. See https://wiki.archlinux.org/index.php/X_keyboard_extension
86
+ ModLevel3Shift Modifiers = 1 << 7 // Currently experimental. See https://wiki.archlinux.org/index.php/X_keyboard_extension
87
88
)
89
90
// Code is the identity of a key relative to a notional "standard" keyboard.
0 commit comments