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

Fix bug #1243 (Input fields don't work in dialogs) #1722

Merged
merged 1 commit into from
Sep 27, 2012

Conversation

peterflynn
Copy link
Member

Fix bug #1243 (Input fields don't work in dialogs)

Improves on an earlier fix (pull #1325), which let keystrokes through to the textfield but still 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.

…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.
var inFormField = ($(e.target).filter(":input").length > 0),
inTextArea = (e.target.tagName === "TEXTAREA");

if (e.which === KeyEvent.DOM_VK_RETURN && !inTextArea) { // enter key in single-line text input still dismisses
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice to allow enter keys to create new lines.

@ghost ghost assigned RaymondLim Sep 27, 2012
RaymondLim added a commit that referenced this pull request Sep 27, 2012
Fix bug #1243 (Input fields don't work in dialogs)
@RaymondLim RaymondLim merged commit 5fa9cd3 into master Sep 27, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants