aboutsummaryrefslogtreecommitdiff
path: root/js/reveal.js
diff options
context:
space:
mode:
authorGreg Denehy <greg@inclose.com.au>2017-04-30 15:24:42 +0930
committerGreg Denehy <greg@inclose.com.au>2017-04-30 15:24:42 +0930
commit8bf9986fa21c89b9b38145b43e6fe572c3acebd5 (patch)
tree69c5af9cdf329ee9b8c5c16add0d484df03b9a85 /js/reveal.js
parent7297474b2e683f6e6e382891b2ec36e7f22c0764 (diff)
downloadperl-software-in-gnu-guix-8bf9986fa21c89b9b38145b43e6fe572c3acebd5.tar
perl-software-in-gnu-guix-8bf9986fa21c89b9b38145b43e6fe572c3acebd5.tar.gz
Pass through key event when calling keyboardCondition() to allow conditional function to filter on key codes
Diffstat (limited to 'js/reveal.js')
-rw-r--r--js/reveal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js
index e8833c4..9d4444f 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -3940,7 +3940,7 @@
// If there's a condition specified and it returns false,
// ignore this event
- if( typeof config.keyboardCondition === 'function' && config.keyboardCondition() === false ) {
+ if( typeof config.keyboardCondition === 'function' && config.keyboardCondition(event) === false ) {
return true;
}