From: Marius Olbertz Date: Fri, 12 May 2017 13:45:08 +0000 (+0200) Subject: Removed keydown handler that used to trigger open. X-Git-Tag: v6.4.0-rc1~44^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10023%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Removed keydown handler that used to trigger open. Will trigger for space and enter automatically for buttons as anchors. However, space will not trigger the click event for links (which is the default behavior). As buttons should be used as anchors, this follows the specs. Relevant for issue #10019. --- diff --git a/js/foundation.reveal.js b/js/foundation.reveal.js index 60917381a..900565cc6 100644 --- a/js/foundation.reveal.js +++ b/js/foundation.reveal.js @@ -148,16 +148,6 @@ class Reveal extends Plugin { } }); - if (this.$anchor.length) { - this.$anchor.on('keydown.zf.reveal', function(e) { - if (e.which === 13 || e.which === 32) { - e.stopPropagation(); - e.preventDefault(); - _this.open(); - } - }); - } - if (this.options.closeOnClick && this.options.overlay) { this.$overlay.off('.zf.reveal').on('click.zf.reveal', function(e) { if (e.target === _this.$element[0] ||