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:
Elias Naur
2020-10-05 09:59:49 +02:00
parent d2e06d9389
commit 29740ba593
+3 -2
View File
@@ -79,10 +79,11 @@ type StageEvent struct {
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 CommandType
// Suppress the default action of the command.
// Cancel suppress the default action of the command.
Cancel bool
}