mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 10:25:37 +00:00
io/system: note CommandEvent is delivered as a pointer
For gio#163 Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+3
-2
@@ -79,10 +79,11 @@ type StageEvent struct {
|
|||||||
Stage Stage
|
Stage Stage
|
||||||
}
|
}
|
||||||
|
|
||||||
// CommandEvent is a system event.
|
// CommandEvent is a system event. Unlike most other events, CommandEvent is
|
||||||
|
// delivered as a pointer to allow Cancel to suppress it.
|
||||||
type CommandEvent struct {
|
type CommandEvent struct {
|
||||||
Type CommandType
|
Type CommandType
|
||||||
// Suppress the default action of the command.
|
// Cancel suppress the default action of the command.
|
||||||
Cancel bool
|
Cancel bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user