Overachiever - achievement tools and tweaks

168 - Remove the blinking cursor from the editboxes when searching

Which version of Overachiever are you using?
0.64

Can ClearFocus() be used please to remove the blinking cursor from the editboxes when clicking the search button or hitting enter to search, like other blizzard windows can do? I agree this behavior on its own seems minor and not worth worrying about, but it leads to something that is troublesome when the search can be so slow and any mistake in the search locks up the game searching a lot.

The major problem is when the search is over after that long wait and enter is accidentally hit again when I was trying to type somewhere else. It starts searching from scratch again for a long time unnecessarily.

The minor problem is when the search is over and I hit slash to type in chat. It does not go to chat and still stays in achiever messing up the search.

For example, to help I had to edit,
Overachiever_Tabs\Search.lua
local function beginSearch()
  EditName:ClearFocus() -- added
  EditDesc:ClearFocus() -- added
  EditCriteria:ClearFocus() -- added
  EditReward:ClearFocus() -- added
  EditAny:ClearFocus() -- added
  ...
local function createEditBox(name, labeltext, obj, x, y)
  --editbox:HookScript("OnEditFocusGained", focusEditBox) -- commented out
  ...

Thanks.

User When Change
jtbalogh Jan 07, 2012 at 04:34 UTC Changed status from Waiting to Replied
Tuhljin Dec 20, 2011 at 04:15 UTC Changed status from New to Waiting
jtbalogh Nov 11, 2011 at 19:43 UTC Changed component from None to Search Tab
jtbalogh Nov 11, 2011 at 19:06 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 1 comment
  • Avatar of Tuhljin Tuhljin Dec 20, 2011 at 04:14 UTC - 0 likes

    I haven't decided what I'm going to do with this quite yet, but I have made it easier to do things your way, at least. From my latest attempted (CurseForge is having problems right now) alpha release:

    Quote:

    Search Tab: Added variable "OPTION_LoseFocusOnSearch" to code, allowing easy alteration of input focus behavior. Users can set it to true to make edit boxes lose focus when a search begins.

  • 1 comment

Facts

Last updated
Jan 07, 2012
Reported
Nov 11, 2011
Status
Replied - Someone has replied after waiting for more information.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.
Votes
0
Component
Search Tab

Reported by

Possible assignees