From ca7550bf4dfc0ad15cb85ca47ef82b13e5b5fe78 Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Fri, 30 Aug 2013 08:54:43 -0700 Subject: [PATCH] Revert "Fixed Tab key not respecting opts.selectOnBlur" breaks tab key. fixes #1646. This reverts commit 6eb74930d58f7265839ecf256eedc72ef29d068b. --- select2.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/select2.js b/select2.js index 14206b97..593e1865 100644 --- a/select2.js +++ b/select2.js @@ -1927,10 +1927,7 @@ the specific language governing permissions and limitations under the Apache Lic killEvent(e); return; case KEY.TAB: - // if selectOnBlur == true, select the currently highlighted option - if (this.opts.selectOnBlur) { - this.selectHighlighted({noFocus: true}); - } + this.selectHighlighted({noFocus: true}); return; case KEY.ESC: this.cancel(e); @@ -2522,10 +2519,7 @@ the specific language governing permissions and limitations under the Apache Lic killEvent(e); return; case KEY.TAB: - // if selectOnBlur == true, select the currently highlighted option - if (this.opts.selectOnBlur) { - this.selectHighlighted({noFocus:true}); - } + this.selectHighlighted({noFocus:true}); this.close(); return; case KEY.ESC: