Skip to content
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] Input fields don't work in dialogs #1227

Open
core-ai-bot opened this issue Aug 29, 2021 · 4 comments
Open

[CLOSED] Input fields don't work in dialogs #1227

core-ai-bot opened this issue Aug 29, 2021 · 4 comments

Comments

@core-ai-bot
Copy link
Member

Issue by peterflynn
Thursday Jul 12, 2012 at 21:41 GMT
Originally opened as adobe/brackets#1243


  1. Run this code somewhere in Brackets: Dialogs.showModalDialog(Dialogs.DIALOG_ID_ERROR, "Test", "<input type='text' />");
  2. Try to type in the input field that appears in the dialog

Result: Field gets focused, but keystrokes do nothing

There's code in Dialogs._handleKeyDown() that attempts to let input elements work, but it looks wrong. Instead of this.filter(":input") it should probably be something like $(e.target).filter(":input").

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Wednesday Aug 01, 2012 at 22:09 GMT


Confirmed fixed as part of pull request review

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Wednesday Aug 08, 2012 at 17:25 GMT


Tagging Sprint 12 so we remember when it was fixed

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Thursday Sep 27, 2012 at 01:20 GMT


Reopening -- I just discovered that key handling still prevents you from putting useful text fields in dialogs, since some keys are interpreted as dialog-closing shortcuts. For example, in the text dialog above try typing the letter "n" on Windows...

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Thursday Sep 27, 2012 at 22:45 GMT


Updated fix has been merged -- closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant