From 65592e78ed5ef609a936b78b075114923b27aeaa Mon Sep 17 00:00:00 2001 From: Maarten Vanraes Date: Tue, 12 Jan 2016 20:44:49 +0100 Subject: better handling of event return values 0 if need to exit positive if not handled yet and negative otherwise. --- lib/ManaTools/Shared/GUI/EventHandlerRole.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/ManaTools/Shared/GUI/EventHandlerRole.pm') diff --git a/lib/ManaTools/Shared/GUI/EventHandlerRole.pm b/lib/ManaTools/Shared/GUI/EventHandlerRole.pm index ba130bc7..852c97a1 100644 --- a/lib/ManaTools/Shared/GUI/EventHandlerRole.pm +++ b/lib/ManaTools/Shared/GUI/EventHandlerRole.pm @@ -522,7 +522,7 @@ sub findItem { =head3 OUTPUT - 0 if the loop should end, 1 otherwise + 0 if the loop should end, positive if handled, negative otherwise =head3 DESCRIPTION @@ -549,7 +549,7 @@ sub processEvents { return $processed if $processed >= 0; } - return 1; + return -1; } #============================================================= -- cgit v1.2.1