mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-08-06 06:38:08 +02:00
Pass through key event when calling keyboardCondition() to allow conditional function to filter on key codes
This commit is contained in:
@@ -3940,7 +3940,7 @@
|
|||||||
|
|
||||||
// If there's a condition specified and it returns false,
|
// If there's a condition specified and it returns false,
|
||||||
// ignore this event
|
// ignore this event
|
||||||
if( typeof config.keyboardCondition === 'function' && config.keyboardCondition() === false ) {
|
if( typeof config.keyboardCondition === 'function' && config.keyboardCondition(event) === false ) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user