some minor search mode behavior changes

This commit is contained in:
Manuel Simon Hirsig
2016-07-29 02:01:35 +02:00
parent 31be7a7c94
commit 6e48220ebc
5 changed files with 35 additions and 39 deletions
+1 -7
View File
@@ -32,7 +32,6 @@ Aux.search_tab.FRAMES(function(m, public, private)
m.settings:Hide()
m.controls:Show()
else
Aux.scan.abort(m.search_scan_id)
m.settings:Show()
m.controls:Hide()
end
@@ -129,7 +128,6 @@ Aux.search_tab.FRAMES(function(m, public, private)
m.first_page_input:GetScript('OnTextChanged')()
this = m.last_page_input
m.last_page_input:GetScript('OnTextChanged')()
m.update_continuation()
end)
public.real_time_button = btn
end
@@ -245,11 +243,7 @@ Aux.search_tab.FRAMES(function(m, public, private)
editbox:SetScript('OnTabPressed', function()
this:HighlightText(0, 0)
end)
editbox:SetScript('OnEnterPressed', function()
this:HighlightText(0, 0)
this:ClearFocus()
m.execute()
end)
editbox:SetScript('OnEnterPressed', m.execute)
editbox:SetScript('OnReceiveDrag', function()
local item_info = Aux.cursor_item() and Aux.info.item(Aux.cursor_item().item_id)
if item_info then