From c46b7121d2630888cfd87bea8b5254c080890fdb Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 24 May 2018 12:55:47 +0300 Subject: [PATCH] minor tweak... Signed-off-by: Alex A. Naanou --- scripts/compress-archive.sh | 4 ++++ ui (gen4)/lib/keyboard.js | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/compress-archive.sh b/scripts/compress-archive.sh index 39854dec..8ac40a49 100755 --- a/scripts/compress-archive.sh +++ b/scripts/compress-archive.sh @@ -85,4 +85,8 @@ find "$BASE_PATH" -name \*.${EXT} -exec ${ARCH} \; +echo done. + + + # vim:set nowrap nospell : diff --git a/ui (gen4)/lib/keyboard.js b/ui (gen4)/lib/keyboard.js index 60b2ca4e..c7cec1b7 100755 --- a/ui (gen4)/lib/keyboard.js +++ b/ui (gen4)/lib/keyboard.js @@ -1089,15 +1089,15 @@ var KeyboardWithCSSModesPrototype = { return !pattern || pattern == '*' // jQuery... - || context.is ? + || (context.is ? (context.is(pattern) || context.find(pattern).length > 0) - : false + : false) // Vanilla JS... - || context.matches ? + || (context.matches ? (context.matches(pattern) || !!context.querySelector(pattern)) - : false + : false) }, __init__: function(keyboard, context){