mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 18:35:34 +00:00
ui/key,ui/app: introduce ModShift modifier
And add desktop implementations. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -198,6 +198,9 @@ func (w *window) keyEvent(e js.Value) {
|
||||
if e.Call("getModifierState", "Control").Bool() {
|
||||
cmd.Modifiers |= key.ModCommand
|
||||
}
|
||||
if e.Call("getModifierState", "Shift").Bool() {
|
||||
cmd.Modifiers |= key.ModShift
|
||||
}
|
||||
w.w.event(cmd)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user