- Build: Update dist

This commit is contained in:
Brett Zamir
2018-10-01 16:45:34 +08:00
parent 3c036c70cd
commit 3d2085c991
8 changed files with 12 additions and 8 deletions

View File

@@ -21196,6 +21196,7 @@
* Original idea by:
* Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/
*/
// We *do* want to allow the escape key within textareas (and possibly tab too), so add the condition `n.which !== 27`
function jqPluginJSHotkeys (b) {
b.hotkeys = {
version: "0.8",
@@ -21286,7 +21287,7 @@
e = d.data.toLowerCase().split(" ");
d.handler = function (n) {
if (this !== n.target && (/textarea|select/i.test(n.target.nodeName) || n.target.type === "text")) {
if (this !== n.target && (n.which !== 27 && /textarea|select/i.test(n.target.nodeName) || n.target.type === "text")) {
return;
}