vendor/assets/js/foundation.util.keyboard.js.es6 in foundation-rails-6.2.1.0 vs vendor/assets/js/foundation.util.keyboard.js.es6 in foundation-rails-6.2.3.0

- old
+ new

@@ -64,16 +64,16 @@ } command = cmds[keyCode]; fn = functions[command]; if (fn && typeof fn === 'function') { // execute function if exists - fn.apply(); + var returnValue = fn.apply(); if (functions.handled || typeof functions.handled === 'function') { // execute function when event was handled - functions.handled.apply(); + functions.handled(returnValue); } } else { if (functions.unhandled || typeof functions.unhandled === 'function') { // execute function when event was not handled - functions.unhandled.apply(); + functions.unhandled(); } } }, /**