ui/key,ui/app: introduce ModShift modifier

And add desktop implementations.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-06-18 20:10:52 +02:00
parent 535f61fbeb
commit e24f19ecba
5 changed files with 20 additions and 9 deletions
+3
View File
@@ -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)
}
}