From 905e0aa4ef2397f181f12116ffa479c9daebbe26 Mon Sep 17 00:00:00 2001
From: catch <catch@35733.no-reply.drupal.org>
Date: Wed, 7 Mar 2012 23:55:35 +0900
Subject: [PATCH] Issue #1361218 by Owen Barton: Fixed Focus jumps to tab when
 pressing enter on a form element within tab.

---
 core/misc/vertical-tabs.js | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/core/misc/vertical-tabs.js b/core/misc/vertical-tabs.js
index 82dcd2c62ed9..14d06607bff6 100644
--- a/core/misc/vertical-tabs.js
+++ b/core/misc/vertical-tabs.js
@@ -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();
-- 
GitLab