Skip to content

Commit 297cc68

Browse files
committed
add pasting to rebirth songsearch
1 parent 7e0e53d commit 297cc68

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Themes/Rebirth/BGAnimations/playerInfoFrame/searchfilter.lua

+7
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ local function upperSection()
366366
if event.type ~= "InputEventType_Release" then
367367
local btn = event.DeviceInput.button
368368
local shift = INPUTFILTER:IsShiftPressed()
369+
local ctrl = INPUTFILTER:IsControlPressed()
369370
local focusedChild = self:GetChild("RowFrame_"..focusedField)
370371

371372
if btn == "DeviceButton_enter" or event.button == "Start" then
@@ -380,13 +381,19 @@ local function upperSection()
380381
else
381382
local del = btn == "DeviceButton_delete"
382383
local bs = btn == "DeviceButton_backspace"
384+
local copypasta = btn == "DeviceButton_v" and ctrl
383385
local char = inputToCharacter(event)
384386

385387
-- if ctrl is pressed with a number, let the general tab input handler deal with this
386388
if char ~= nil and tonumber(char) and INPUTFILTER:IsControlPressed() then
387389
return
388390
end
389391

392+
-- paste
393+
if copypasta then
394+
char = Arch.getClipboard()
395+
end
396+
390397
focusedChild:playcommand("Input", {delete = del, backspace = bs, char = char})
391398

392399
-- im just gonna.. update all the fields... for your information....

0 commit comments

Comments
 (0)