Commit 11d7ef15 authored by Jacob Thornton's avatar Jacob Thornton

Merge pull request #1272 from napoleond/2.0-wip

Support tab and enter in typeahead
parents c63175dc b9589fcb
......@@ -157,6 +157,7 @@
case 9: // tab
case 13: // enter
if (!this.shown) return
this.select()
break
......@@ -172,6 +173,7 @@
, keypress: function (e) {
e.stopPropagation()
if (!this.shown) return
switch(e.keyCode) {
case 9: // tab
......@@ -181,13 +183,11 @@
break
case 38: // up arrow
if (!this.shown) return
e.preventDefault()
this.prev()
break
case 40: // down arrow
if (!this.shown) return
e.preventDefault()
this.next()
break
......
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