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)
|
||||
end
|
||||
editbox.complete = completion.complete_filter
|
||||
editbox.focus_loss = function() this:SetText(current_search.filter_string or '') end
|
||||
editbox:SetHeight(25)
|
||||
editbox.char = function()
|
||||
this:complete()
|
||||
|
||||
@@ -321,8 +321,6 @@ function M.execute(resume, real_time)
|
||||
end
|
||||
end
|
||||
|
||||
clear_control_focus()
|
||||
|
||||
if resume then
|
||||
current_search.table:SetSelectedRecord()
|
||||
else
|
||||
@@ -348,7 +346,7 @@ function M.execute(resume, real_time)
|
||||
discard_continuation()
|
||||
current_search.active = true
|
||||
update_start_stop()
|
||||
|
||||
clear_control_focus()
|
||||
subtab = RESULTS
|
||||
if real_time then
|
||||
start_real_time_scan(queries[1], nil, continuation)
|
||||
|
||||
Reference in New Issue
Block a user