From: Brett Mason Date: Thu, 10 Nov 2016 20:35:43 +0000 (+0000) Subject: Add missed keyboard etc code X-Git-Tag: v6.3-rc1~6^2~13^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b33bf9ef3cdf5376d3a5b9de727406e939deeecb;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Add missed keyboard etc code --- diff --git a/js/foundation.offcanvas.js b/js/foundation.offcanvas.js index 9c1286f1d..66c187caf 100644 --- a/js/foundation.offcanvas.js +++ b/js/foundation.offcanvas.js @@ -27,7 +27,11 @@ class OffCanvas { this._init(); this._events(); - Foundation.registerPlugin(this, 'OffCanvas'); + Foundation.registerPlugin(this, 'OffCanvas') + Foundation.Keyboard.register('OffCanvas', { + 'ESCAPE': 'close' + }); + } /**