diff options
| author | Stephen Blott | 2015-01-06 13:32:34 +0000 |
|---|---|---|
| committer | Stephen Blott | 2015-01-06 13:32:34 +0000 |
| commit | 486dce36493836461de7e9ae73721230ad69a1b5 (patch) | |
| tree | 24a89c1b9b6500fbea5fb93ad26a99fbf047d1f0 /content_scripts | |
| parent | faf5b35ab501b8c4edc25f484c0b76ee38319f1f (diff) | |
| download | vimium-486dce36493836461de7e9ae73721230ad69a1b5.tar.bz2 | |
Modes; fix PostFindMode for contentEditable.
Diffstat (limited to 'content_scripts')
| -rw-r--r-- | content_scripts/mode_find.coffee | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/content_scripts/mode_find.coffee b/content_scripts/mode_find.coffee index 0bcb0eb1..e11b2e0f 100644 --- a/content_scripts/mode_find.coffee +++ b/content_scripts/mode_find.coffee @@ -15,9 +15,10 @@ class PostFindMode extends InsertModeBlocker return @exit() unless element and findModeAnchorNode - # Special cases only arise if the active element is focusable. So, exit immediately if it is not. + # Special cases only arise if the active element can take input. So, exit immediately if it cannot not. canTakeInput = DomUtils.isSelectable(element) and DomUtils.isDOMDescendant findModeAnchorNode, element canTakeInput ||= element.isContentEditable + canTakeInput ||= findModeAnchorNode?.parentElement?.isContentEditable return @exit() unless canTakeInput self = @ |
