From 29740ba59343b7e78af095c94841e8b53462253c Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 5 Oct 2020 09:59:49 +0200 Subject: [PATCH] io/system: note CommandEvent is delivered as a pointer For gio#163 Signed-off-by: Elias Naur --- io/system/system.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/io/system/system.go b/io/system/system.go index 8abac6d8..4aa88d3b 100644 --- a/io/system/system.go +++ b/io/system/system.go @@ -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 }