summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorruki <[email protected]>2018-01-10 00:46:38 +0800
committerruki <[email protected]>2018-01-09 22:39:52 +0800
commit273ea08ed48c9c4a7d5355256a45285188297d82 (patch)
treeb01a43a43590027d40212088819b1b420316cd8d /tests
parent2fc03e778ad00bef537b5adb6cd40b70a64a2a96 (diff)
fix border color and height
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/desktop.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/ui/desktop.lua b/tests/ui/desktop.lua
index 48539a14f..004cee53f 100644
--- a/tests/ui/desktop.lua
+++ b/tests/ui/desktop.lua
@@ -60,7 +60,7 @@ end
-- on event
function demo:event_on(e)
- if view.event_on(self, e) then
+ if application.event_on(self, e) then
return true
end
if e.type == event.ev_keyboard then
@@ -71,8 +71,6 @@ function demo: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