diff options
| author | ruki <[email protected]> | 2017-12-28 00:24:54 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-12-27 20:29:28 +0800 |
| commit | ba9ff696b98908ec469c463ccdb7a313bb56c04a (patch) | |
| tree | 58d5cdebce6bb1ec5b1934887ef1171c87475294 /xmake/core/ui/button.lua | |
| parent | 5a9bc97b532309a1d13175e5ce4e82a2f430d58e (diff) | |
refresh cursor
Diffstat (limited to 'xmake/core/ui/button.lua')
| -rw-r--r-- | xmake/core/ui/button.lua | 6 |
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 |
