diff options
Diffstat (limited to 'lib/dom_utils.coffee')
| -rw-r--r-- | lib/dom_utils.coffee | 7 | 
1 files changed, 1 insertions, 6 deletions
| diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee index db90c43a..7f18e643 100644 --- a/lib/dom_utils.coffee +++ b/lib/dom_utils.coffee @@ -179,12 +179,7 @@ DomUtils =    # enter insert mode if focused. Also note that the "contentEditable" attribute can be set on any element    # which makes it a rich text editor, like the notes on jjot.com.    isEditable: (element) -> -    return true if element.isContentEditable -    nodeName = element.nodeName?.toLowerCase() -    # Use a blacklist instead of a whitelist because new form controls are still being implemented for html5. -    if nodeName == "input" and element.type not in ["radio", "checkbox"] -      return true -    nodeName in ["textarea", "select"] +    (@isSelectable element) or element.nodeName?.toLowerCase() == "select"    # Embedded elements like Flash and quicktime players can obtain focus.    isEmbed: (element) -> | 
