summaryrefslogtreecommitdiff
path: root/xmake/core/ui/window.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2018-01-19 22:44:08 +0800
committerruki <[email protected]>2018-01-19 10:24:53 +0800
commit41ad9ed26eec93d72782a6db633124b754fd2258 (patch)
tree0ac6415d22229eaf4bd7e987df8a8ab1e53c9f29 /xmake/core/ui/window.lua
parent7d42cff795e9600a837fc0e595baa4d76ac0838e (diff)
improve input dialog
Diffstat (limited to 'xmake/core/ui/window.lua')
-rw-r--r--xmake/core/ui/window.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/xmake/core/ui/window.lua b/xmake/core/ui/window.lua
index 7040c6e26..158f3d3f3 100644
--- a/xmake/core/ui/window.lua
+++ b/xmake/core/ui/window.lua
@@ -28,6 +28,7 @@ local rect = require("ui/rect")
local view = require("ui/view")
local label = require("ui/label")
local panel = require("ui/panel")
+local event = require("ui/event")
local border = require("ui/border")
local curses = require("ui/curses")
@@ -106,5 +107,16 @@ function window:border()
return self._BORDER
end
+-- on event
+function window:event_on(e)
+
+ -- select panel?
+ if e.type == event.ev_keyboard then
+ if e.key_name == "Tab" then
+ return self:panel():select_next()
+ end
+ end
+end
+
-- return module
return window