small change for search box. losing focus restores the current query

This commit is contained in:
Manuel Simon Hirsig
2016-12-20 19:14:45 +01:00
parent 5d48538942
commit f034504ac5
2 changed files with 2 additions and 3 deletions
+1
View File
@@ -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()
+1 -3
View File
@@ -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)