summaryrefslogtreecommitdiff
path: root/tests/ui/hello.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-12-22 22:35:14 +0800
committerruki <[email protected]>2017-12-22 09:31:26 +0800
commit0f825ce5a225f7dfba8e46e44de82c50df0b2e35 (patch)
tree2948fca0cc55a67a57ef10901a25a503828415f5 /tests/ui/hello.lua
parent8594fdccd6cb87909a227f6ad0d794188bc11584 (diff)
improve cui refresh
Diffstat (limited to 'tests/ui/hello.lua')
-rw-r--r--tests/ui/hello.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/hello.lua b/tests/ui/hello.lua
index a069d015c..fb75384a8 100644
--- a/tests/ui/hello.lua
+++ b/tests/ui/hello.lua
@@ -46,6 +46,13 @@ function hello:event_on(e)
view.event_on(self, e)
if e.type == event.ev_keyboard then
self:statusbar():info_set(e.key_name)
+ if e.key_name == "s" then
+ self:statusbar():show(not self:statusbar():state("visible"))
+ elseif e.key_name == "m" then
+ self:menubar():show(not self:menubar():state("visible"))
+ elseif e.key_name == "d" then
+ self:desktop():show(not self:desktop():state("visible"))
+ end
end
end