aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorStephen Blott2015-01-10 15:05:58 +0000
committerStephen Blott2015-01-10 15:05:58 +0000
commitc554d1fd5b6d81506864516b6f86a14f8672bec5 (patch)
tree5e2d15e17a0344a0882cd57dda1d4d2665a1b9f1 /lib
parent35cb54fec7242fac5c68503a32ef9dd4fea5d9b6 (diff)
downloadvimium-c554d1fd5b6d81506864516b6f86a14f8672bec5.tar.bz2
Modes; reinstate key blockers:
- when the selection is contentEditable - in PostFindMode Restricted to printable characters.
Diffstat (limited to 'lib')
-rw-r--r--lib/dom_utils.coffee3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee
index 322188b3..fd2427c4 100644
--- a/lib/dom_utils.coffee
+++ b/lib/dom_utils.coffee
@@ -212,5 +212,8 @@ DomUtils =
@remove()
false
+ isPrintable: (event) ->
+ not (event.metaKey or event.ctrlKey or event.altKey)
+
root = exports ? window
root.DomUtils = DomUtils