summaryrefslogtreecommitdiff
path: root/xmake/core/ui/textedit.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/ui/textedit.lua')
-rw-r--r--xmake/core/ui/textedit.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/core/ui/textedit.lua b/xmake/core/ui/textedit.lua
index 4c06ed564..98219637b 100644
--- a/xmake/core/ui/textedit.lua
+++ b/xmake/core/ui/textedit.lua
@@ -26,6 +26,7 @@ local event = require("ui/event")
local border = require("ui/border")
local curses = require("ui/curses")
local textarea = require("ui/textarea")
+local action = require("ltui/action")
-- define module
local textedit = textedit or textarea()
@@ -42,6 +43,10 @@ function textedit:init(name, bounds, text)
-- mark as selectable
self:option_set("selectable", true)
+ -- mark as mouseable
+ self:option_set("mouseable", true)
+ self:action_set(action.ac_on_clicked, function () return true end)
+
-- disable progress
self:option_set("progress", false)