mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 02:15: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:
@@ -82,6 +82,9 @@ func gio_onKeys(view C.CFTypeRef, cstr *C.char, ti C.double, mods C.NSUInteger)
|
||||
if mods&C.NSEventModifierFlagCommand != 0 {
|
||||
kmods |= key.ModCommand
|
||||
}
|
||||
if mods&C.NSEventModifierFlagShift != 0 {
|
||||
kmods |= key.ModShift
|
||||
}
|
||||
w := views[view]
|
||||
for _, k := range str {
|
||||
if n, ok := convertKey(k); ok {
|
||||
|
||||
Reference in New Issue
Block a user