From: Kevin Ball Date: Mon, 12 Dec 2016 17:57:22 +0000 (-0800) Subject: Fix keyboard usage on drilldowns with parent link X-Git-Tag: v6.3.0~11^2~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9490%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Fix keyboard usage on drilldowns with parent link --- diff --git a/js/foundation.drilldown.js b/js/foundation.drilldown.js index aae933011..665ab2dcc 100644 --- a/js/foundation.drilldown.js +++ b/js/foundation.drilldown.js @@ -188,8 +188,7 @@ class Drilldown { _keyboardEvents() { var _this = this; - this.$menuItems.add(this.$element.find('.js-drilldown-back > a')).on('keydown.zf.drilldown', function(e){ - + this.$menuItems.add(this.$element.find('.js-drilldown-back > a, .is-submenu-parent-item > a')).on('keydown.zf.drilldown', function(e){ var $element = $(this), $elements = $element.parent('li').parent('ul').children('li').children('a'), $prevElement,