summaryrefslogtreecommitdiff
path: root/xmake/core/ui/button.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/ui/button.lua')
-rw-r--r--xmake/core/ui/button.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/core/ui/button.lua b/xmake/core/ui/button.lua
index fe9a719c7..22413a83c 100644
--- a/xmake/core/ui/button.lua
+++ b/xmake/core/ui/button.lua
@@ -35,6 +35,12 @@ function button:init(name, bounds, text)
-- init label
label.init(self, name, bounds, text)
+
+ -- mark as selectable
+ self:option_set("selectable", true)
+
+ -- show cursor
+ self:cursor_show(true)
end
-- return module