From 8c493d55f012bb8e9ee4ebfffaa569e465b53813 Mon Sep 17 00:00:00 2001 From: steswinbank Date: Tue, 28 May 2013 12:59:05 +0200 Subject: [PATCH] Update typeahead_view.js Added 'tabKeyed' to trigger of _handleSelection as requested in https://github.com/twitter/typeahead.js/issues/258 --- src/typeahead_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/typeahead_view.js b/src/typeahead_view.js index 4f1af521..06e67fe4 100644 --- a/src/typeahead_view.js +++ b/src/typeahead_view.js @@ -87,7 +87,7 @@ var TypeaheadView = (function() { .on('focused', this._openDropdown) .on('blured', this._closeDropdown) .on('blured', this._setInputValueToQuery) - .on('enterKeyed', this._handleSelection) + .on('enterKeyed tabKeyed', this._handleSelection) .on('queryChanged', this._clearHint) .on('queryChanged', this._clearSuggestions) .on('queryChanged', this._getSuggestions)