From 51a7c2efee5d3be83e775a746c1b8d94042b5dec Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org> Date: Mon, 28 Sep 2015 13:50:33 +0100 Subject: [PATCH] Issue #2574917 by andrewmacpherson, googletorp: Regression: vertical tabs are not keyboard accessible --- core/misc/vertical-tabs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/misc/vertical-tabs.js b/core/misc/vertical-tabs.js index a381bdcf12b5..3f53cd80284b 100644 --- a/core/misc/vertical-tabs.js +++ b/core/misc/vertical-tabs.js @@ -120,8 +120,8 @@ // Keyboard events added: // Pressing the Enter key will open the tab pane. this.link.on('keydown', function (event) { - event.preventDefault(); if (event.keyCode === 13) { + event.preventDefault(); self.focus(); // Set focus on the first input field of the visible details/tab pane. $(".vertical-tabs__pane :input:visible:enabled").eq(0).trigger('focus'); -- GitLab