mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 15:45:38 +00:00
380f96b3fc
Before this change, every Event would be passed to the focused InputOp tag, making it impossible to implement, say, program-wide shortcuts. This change implements key.Event routing similar to how pointer.Events are routed: every InputOp describes the set of keys it can handle, and the router use that information to deliver an Event to the matching handler. This is an API change, because every InputOp must now include a filter matching the keys it wants to handle. Fixes: https://todo.sr.ht/~eliasnaur/gio/395 Signed-off-by: Elias Naur <mail@eliasnaur.com>
12 lines
378 B
Go
12 lines
378 B
Go
// SPDX-License-Identifier: Unlicense OR MIT
|
|
|
|
package key
|
|
|
|
// ModShortcut is the platform's shortcut modifier, usually the ctrl
|
|
// modifier. On Apple platforms it is the cmd key.
|
|
const ModShortcut = ModCommand
|
|
|
|
// ModShortcut is the platform's alternative shortcut modifier,
|
|
// usually the ctrl modifier. On Apple platforms it is the alt modifier.
|
|
const ModShortcutAlt = ModAlt
|