From 150d2d52cd7d1119e71bdbf1ba26fe4de2b9390b Mon Sep 17 00:00:00 2001 From: Marius Olbertz Date: Fri, 12 May 2017 15:45:08 +0200 Subject: [PATCH] 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. --- js/foundation.reveal.js | 10 ---------- 1 file changed, 10 deletions(-) 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] || -- 2.47.2