mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +00:00
io/key: add ModAlt, ModSuper
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -64,6 +64,12 @@ const (
|
||||
ModCommand
|
||||
// ModShift is the shift modifier key.
|
||||
ModShift
|
||||
// ModAlt is the alt modifier key, or the option
|
||||
// key on Apple keyboards.
|
||||
ModAlt
|
||||
// ModSuper is the "logo" modifier key, often
|
||||
// represented by a Windows logo.
|
||||
ModSuper
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -121,5 +127,11 @@ func (m Modifiers) String() string {
|
||||
if m.Contain(ModShift) {
|
||||
strs = append(strs, "ModShift")
|
||||
}
|
||||
if m.Contain(ModAlt) {
|
||||
strs = append(strs, "ModAlt")
|
||||
}
|
||||
if m.Contain(ModSuper) {
|
||||
strs = append(strs, "ModSuper")
|
||||
}
|
||||
return strings.Join(strs, "|")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user