Skip to content

Commit

Permalink
Make song search search when pressing delete using instant search
Browse files Browse the repository at this point in the history
i really messed up the wording there didnt i
  • Loading branch information
poco0317 committed Dec 3, 2019
1 parent 92bb88a commit dd3672f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ local function searchInput(event)
searchstring = searchstring:sub(1, -2) -- remove the last element of the string
elseif event.DeviceInput.button == "DeviceButton_delete" then
searchstring = ""
if not instantSearch then
whee:SongSearch(searchstring)
end
elseif event.DeviceInput.button == "DeviceButton_=" then
searchstring = searchstring .. "="
else
Expand Down

0 comments on commit dd3672f

Please sign in to comment.