Issue #1361218 by Owen Barton, Kevin Morse, Everett Zufelt: Fixed Focus jumps to tab when pressing enter on a form element within tab.

merge-requests/26/head
webchick 2012-03-11 11:44:20 -07:00
parent a697ccdb79
commit 473dc563f5
1 changed files with 0 additions and 10 deletions

View File

@ -92,16 +92,6 @@ Drupal.verticalTab = function (settings) {
}
});
// Pressing the Enter key lets you leave the tab again.
this.fieldset.keydown(function(event) {
// Enter key should not trigger inside <textarea> to allow for multi-line entries.
if (event.keyCode == 13 && event.target.nodeName != "TEXTAREA") {
// Set focus on the selected tab button again.
$(".vertical-tab-button.selected a").focus();
return false;
}
});
this.fieldset
.bind('summaryUpdated', function () {
self.updateSummary();