Update GUI.lua

This commit is contained in:
Oleshe 2025-05-25 18:00:45 +03:00 committed by GitHub
parent 2e5344f4b5
commit bc8d1e54c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,6 +7,7 @@ local screen = require("Screen")
local paths = require("Paths")
local text = require("Text")
local number = require("Number")
local clipboard = require("Clipboard")
-----------------------------------------------------------------------------------------
@ -3062,6 +3063,10 @@ local function inputEventHandler(workspace, input, e1, e2, e3, e4, e5, e6, ...)
elseif e4 == 207 then
input:setCursorPosition(unicode.len(input.text) + 1)
-- V
elseif e4 == 47 and type(clipboard.paste()) ~= "table" then
input.text = input.text .. tostring(clipboard.paste())
input:setCursorPosition(unicode.len(input.text)+1)
else
local char = unicode.char(e3)