diff --git a/core/misc/vertical-tabs.js b/core/misc/vertical-tabs.js index a381bdcf12b5e0d85d4bcb9002e9b049c504285e..3f53cd80284b9d23f122435de5d5ff6509d61677 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');