summaryrefslogtreecommitdiff
path: root/tests/ui/hello.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-12-23 00:39:37 +0800
committerruki <[email protected]>2017-12-22 21:57:44 +0800
commit9e2b084be73bc0b966c2c43f73403703d64b7228 (patch)
tree5ab95a1343897bde53c6b3f0fedccd6420df7328 /tests/ui/hello.lua
parent0f825ce5a225f7dfba8e46e44de82c50df0b2e35 (diff)
handle cm_quit for application
Diffstat (limited to 'tests/ui/hello.lua')
-rw-r--r--tests/ui/hello.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/hello.lua b/tests/ui/hello.lua
index fb75384a8..4d3dcbc84 100644
--- a/tests/ui/hello.lua
+++ b/tests/ui/hello.lua
@@ -52,6 +52,8 @@ function hello:event_on(e)
self:menubar():show(not self:menubar():state("visible"))
elseif e.key_name == "d" then
self:desktop():show(not self:desktop():state("visible"))
+ elseif e.key_name == "q" then
+ self:quit()
end
end
end