Skip to content

Commit

Permalink
Fix songsearch pasting
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram authored Feb 28, 2019
1 parent 644d3b2 commit 9ab20a0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ local function searchInput(event)
searchstring = ""
elseif event.DeviceInput.button == "DeviceButton_=" then
searchstring = searchstring .. "="
elseif event.DeviceInput.button == "DeviceButton_v" and CtrlPressed then
searchstring = searchstring .. HOOKS:GetClipboard()
else
local CtrlPressed = INPUTFILTER:IsControlPressed()
if event.DeviceInput.button == "DeviceButton_v" and CtrlPressed then
searchstring = searchstring .. HOOKS:GetClipboard()
elseif
--if not nil and (not a number or (ctrl pressed and not online))
local CtrlPressed = INPUTFILTER:IsBeingPressed("left ctrl") or INPUTFILTER:IsBeingPressed("right ctrl")
if
event.char and event.char:match('[%%%+%-%!%@%#%$%^%&%*%(%)%=%_%.%,%:%;%\'%"%>%<%?%/%~%|%w]') and
(not tonumber(event.char) or CtrlPressed)
then
Expand Down

0 comments on commit 9ab20a0

Please sign in to comment.