Commit 905e0aa4 authored by catch's avatar catch

Issue #1361218 by Owen Barton: Fixed Focus jumps to tab when pressing enter on...

Issue #1361218 by Owen Barton: Fixed Focus jumps to tab when pressing enter on a form element within tab.
parent c49207d9
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment