-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLOSED] QuickOpen file search initial selection is unpredictable #4430
Comments
Comment by njx One possible issue is that if the mouse happens to be over the list when it drops down, and you nudge it slightly, that's what gets selected first (because hover changes selection). That seems to happen to me fairly often. Personally, I don't think hovering should change the selection. |
Comment by gruehle Reviewed, low priority to |
Comment by iwehrman I vote that this be bumped to medium priority. It doesn't just happen if your mouse is hovering over the menu. (Although that does happen quite a lot for me.) If you hover your mouse in the middle of the menu and accidentally open the wrong file as a result of this bug, and then move your mouse out of the way to execute QuickOpen again, then the selection remains, by default, in the middle of the menu, which causes the erroneous behavior a second time in a row. 😡 🔥 💻 🔥 |
Comment by njx Works for me, I don't like it either :) |
Comment by njx Let's nominate it for next sprint. |
Comment by njx It looks like we would need to actually fix this in smart-autocomplete, as there's no option to distinguish between hover and key navigation. I would guess it's easy to add that, but there have been a number of other fixes in smart-autocomplete since we last updated it, so if we submit a pull request for this we'd need to get those changes as well. It actually looks like many (if not all) of those changes were actually submitted by folks associated with Brackets (e.g. for #2757), but we haven't pulled them yet because we were waiting to do a general cleanup of Quick Open: https://trello.com/card/quick-open-full-design-ux-polish/4f90a6d98f77505d7940ce88/834 Marking this as Needs Review to figure out if we want to try to do this as a one-off bug fix, or to actually submit a patch to smart-autocomplete and then do the work of merging it back and testing to make sure the other patches didn't break anything (in advance of doing the full backlog card). |
Comment by njx We decided to go ahead and try to update smart-autocomplete. However, I just pulled the latest upstream and it seems to break Quick Open, so some change that was made since our last update isn't innocuous. /cc |
Comment by njx The issue appears to be the change in laktek/jQuery-Smart-Auto-Complete#26 from Given where we are now, if we still want to fix this bug, my preference would be to change smart-autocomplete back to using keyup so we can keep the existing logic, and then add whatever other fixes we need on top of it. Longer term, we should consider fixing or rewriting the dropdown, as in #5703. [Edited to remove some misleading stuff about that change breaking Brackets...it probably worked in Brackets at the time but we never merged it, and we added the keyup handling later.] |
Comment by njx Marking this needs review. I'll bring it up in our next standup to see if we should continue trying to move forward on this (either by re-patching it or forking), or wait until we get to the official Quick Open story and consider rewriting the control. (I'd note that it doesn't really look like smart-autocomplete is being actively maintained anyway--pretty much all the patches in the last year have come from people associated with Brackets--so forking/rewriting doesn't seem like a bad alternative.) |
Comment by njx Looking into this a little further, it looks like our change to keyup happened after the keydown change was submitted to smart-autocomplete (but we hadn't merged that change back into Brackets), so that change would probably have worked in Brackets at the time but would have broken later. It's possible that some rejiggering of the Quick Open logic would work with the keydown change, but it definitely seems a little dangerous to do that as part of a bug fix without doing some testing, so it makes sense to combine it with the larger Quick Open revamp. |
Comment by njx We discussed this at the architecture meeting, and we think at this point it would be best in the short term to just monkey-patch smart autocomplete rather than try to submit fixes to the main repo, since we're probably going to replace it with something else eventually anyway. So, my plan is to remove the submodule and just copy the latest version of smart autocomplete into the Brackets repo, revert the
|
Comment by redmunds FBNC back to |
Comment by iwehrman Lovin' it! 🍟 |
Issue by iwehrman
Friday Aug 16, 2013 at 16:26 GMT
Originally opened as adobe/brackets#4791
This is probably a known issue, but I couldn't find anything in the tracker.
The subject basically summarizes the issue: when you start typing in the QuickOpen file search dialog, the initially selected item is unpredictable: sometimes it's the first item, sometimes it's an item other than the first, and sometimes I don't see a selection at all. (If the latter case, pressing enter seems to open the first entry.)
It seems like the correct behavior is that the first item should always be selected by default when starting a new QuickOpen file search.
The text was updated successfully, but these errors were encountered: