Pass through key event when calling keyboardCondition() to allow conditional function to filter on key codes

edit
Greg Denehy 2017-04-30 15:24:42 +09:30
parent 7297474b2e
commit 8bf9986fa2
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}