-
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] Fix for #6904 - Pressing [Enter] in Extension Manager Search box closes Extension Manager #6620
Comments
Comment by ingorichter Okay, what is the conclusion? We want a different fix for this issue? |
Comment by TomMalbran I guess that the easiest solution would be to have a special class for the search inputs and then change https://github.com/adobe/brackets/blob/master/src/widgets/Dialogs.js#L152 so that it takes into account the search inputs. |
Comment by peterflynn
|
Comment by TomMalbran
|
Comment by ingorichter I think it's weird to handle a very specific case in the general purpose dialog class. Do we have more search input fields where we want this behavior? |
Comment by TomMalbran Not yet, but we might need it later for the Preferences UI, and maybe for other similar UI we make or that extensions authors make that would use a search input. To me is not a very specific case, but a common one, and the dialog is already handling several cases. |
Comment by ingorichter I can add this to the Dialog class, but I'm not convinced that this is the right solution nor do these other special case handlings belong there. This might be the easiest way to fix it. I think this should somehow be configurable by the creator of the dialog. Otherwise somebody doesn’t like a specific behavior that we provide with the general purpose Dialog implementation. |
Comment by TomMalbran In that case we could use a more generic class with a name that would imply that enter won't be executed after being pressed. Another possibility could be to pass a keydown handler function that is executed before |
Comment by njx Unassigning myself. I haven't fully digested the comments above, but it looks like this PR is not ready to go as-is since there's some desire to follow an alternate solution. |
Comment by busykai FWIW, we also have Another question is what's the right behavior should be: should it just stay on the input field and do nothing, should it switch the focus to the default button, should it act as tab? Should there be different classes for different behaviors?.. |
Comment by rroshan1 It would be good if we could reach some consensus on the fix for this issue. This issue is experienced by many and it has been open for quite long now. |
Issue by ingorichter
Thursday Mar 27, 2014 at 21:13 GMT
Originally opened as adobe/brackets#7337
This will prevent that the Extension Manager Dialog will be closed when the
Enter
key is hit inside the search field.ingorichter included the following code: https://github.com/adobe/brackets/pull/7337/commits
The text was updated successfully, but these errors were encountered: