small change for search box. losing focus restores the current query
This commit is contained in:
@@ -161,6 +161,7 @@ do
|
|||||||
return queries and join(map(copy(queries), function(query) return query.prettified end), ';') or color.red(str)
|
return queries and join(map(copy(queries), function(query) return query.prettified end), ';') or color.red(str)
|
||||||
end
|
end
|
||||||
editbox.complete = completion.complete_filter
|
editbox.complete = completion.complete_filter
|
||||||
|
editbox.focus_loss = function() this:SetText(current_search.filter_string or '') end
|
||||||
editbox:SetHeight(25)
|
editbox:SetHeight(25)
|
||||||
editbox.char = function()
|
editbox.char = function()
|
||||||
this:complete()
|
this:complete()
|
||||||
|
|||||||
@@ -321,8 +321,6 @@ function M.execute(resume, real_time)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
clear_control_focus()
|
|
||||||
|
|
||||||
if resume then
|
if resume then
|
||||||
current_search.table:SetSelectedRecord()
|
current_search.table:SetSelectedRecord()
|
||||||
else
|
else
|
||||||
@@ -348,7 +346,7 @@ function M.execute(resume, real_time)
|
|||||||
discard_continuation()
|
discard_continuation()
|
||||||
current_search.active = true
|
current_search.active = true
|
||||||
update_start_stop()
|
update_start_stop()
|
||||||
|
clear_control_focus()
|
||||||
subtab = RESULTS
|
subtab = RESULTS
|
||||||
if real_time then
|
if real_time then
|
||||||
start_real_time_scan(queries[1], nil, continuation)
|
start_real_time_scan(queries[1], nil, continuation)
|
||||||
|
|||||||
Reference in New Issue
Block a user