aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/dom_utils.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee
index 1d1b67ba..4f36e395 100644
--- a/lib/dom_utils.coffee
+++ b/lib/dom_utils.coffee
@@ -140,7 +140,7 @@ DomUtils =
isSelectable: (element) ->
unselectableTypes = ["button", "checkbox", "color", "file", "hidden", "image", "radio", "reset", "submit"]
(element.nodeName.toLowerCase() == "input" && unselectableTypes.indexOf(element.type) == -1) ||
- element.nodeName.toLowerCase() == "textarea"
+ element.nodeName.toLowerCase() == "textarea" || element.isContentEditable
# Input or text elements are considered focusable and able to receieve their own keyboard events, and will
# enter insert mode if focused. Also note that the "contentEditable" attribute can be set on any element