diff options
Diffstat (limited to 'xmake/core/ui/textedit.lua')
| -rw-r--r-- | xmake/core/ui/textedit.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/core/ui/textedit.lua b/xmake/core/ui/textedit.lua index ea5222140..ed1a92221 100644 --- a/xmake/core/ui/textedit.lua +++ b/xmake/core/ui/textedit.lua @@ -91,6 +91,12 @@ function textedit:event_on(e) self:text_set(text:sub(1, #text - 1)) end return true + elseif e.key_name == "CtrlV" then + local pastetext = os.pbpaste() + if pastetext then + self:text_set(self:text() .. pastetext) + end + return true end end |
