Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Input fields don't work in dialogs #1243

Closed
peterflynn opened this issue Jul 12, 2012 · 4 comments
Closed

Input fields don't work in dialogs #1243

peterflynn opened this issue Jul 12, 2012 · 4 comments

Comments

@peterflynn
Copy link
Member

  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").

@ghost ghost assigned peterflynn Jul 12, 2012
peterflynn added a commit that referenced this issue Aug 1, 2012
Fix for issue #1243 (Input fields don't work in dialogs)
@peterflynn
Copy link
Member Author

Confirmed fixed as part of pull request review

@peterflynn
Copy link
Member Author

Tagging Sprint 12 so we remember when it was fixed

@peterflynn
Copy link
Member Author

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...

@peterflynn peterflynn reopened this Sep 27, 2012
peterflynn added a commit that referenced this issue Sep 27, 2012
…rlier

fix that let keystrokes through to the textfield, but auto-closed the
dialog when certain chars were typed. Now we only close the dialog if the
char typed could not have been intended as text input.
RaymondLim added a commit that referenced this issue Sep 27, 2012
Fix bug #1243 (Input fields don't work in dialogs)
@peterflynn
Copy link
Member Author

Updated fix has been merged -- closing

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

No branches or pull requests

1 participant