When clicking the search button, highlight the current text and add it to the editbox history.
James D. Callahan III [03-23-10 - 06:57]
When clicking the search button, highlight the current text and add it to the editbox history.
diff --git a/Frame.lua b/Frame.lua
index 81b80c8..f9ed6d7 100644
--- a/Frame.lua
+++ b/Frame.lua
@@ -1369,6 +1369,8 @@ ARL_SearchButton:SetScript("OnClick",
if searchtext ~= "" then
MainPanel.search_editbox.prev_search = searchtext
+ MainPanel.search_editbox:HighlightText()
+ MainPanel.search_editbox:AddHistoryLine(searchtext)
SearchRecipes(searchtext)
MainPanel.scroll_frame:Update(false, false)