Index: ui/webui/resources/js/util.js |
diff --git a/ui/webui/resources/js/util.js b/ui/webui/resources/js/util.js |
index 9f299674db0458edbfca59071dfc61aa917ea53a..75ea9da64aed7936dc5ff435ff417b620d90c67b 100644 |
--- a/ui/webui/resources/js/util.js |
+++ b/ui/webui/resources/js/util.js |
@@ -500,3 +500,11 @@ function importModules(moduleNames) { |
}); |
}); |
} |
+ |
+/** |
+ * @param {!Event} e |
+ * @return {boolean} Whether a modifier key was down when processing |e|. |
+ */ |
+function hasKeyModifiers(e) { |
+ return !!(e.altKey || e.ctrlKey || e.metaKey || e.shiftKey); |
+} |