From 7b0b08324ce52a9d06f891f398a8d831cdbb6573 Mon Sep 17 00:00:00 2001 From: cuu Date: Mon, 11 Jun 2018 13:40:28 +0800 Subject: [PATCH] add Menu key to quit --- test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test.go b/test.go index 0542ea8..68ed0d3 100644 --- a/test.go +++ b/test.go @@ -96,6 +96,9 @@ func run() int { if ev.Data["Key"] == "Q" { return 0 } + if ev.Data["Key"] == "Escape" { + return 0 + } } }