Commit 80d03e14 authored by Pete Hopkins's avatar Pete Hopkins
Browse files

Allow events to propagate / default if not used.

 - All key events when the menu is not shown now propagate.
 - Blur is also allowed to propagate.
parent 8609a77b
Showing with 4 additions and 6 deletions
+4 -6
......@@ -165,9 +165,6 @@
}
, keyup: function (e) {
e.stopPropagation()
e.preventDefault()
switch(e.keyCode) {
case 40: // down arrow
case 38: // up arrow
......@@ -187,10 +184,11 @@
this.lookup()
}
e.stopPropagation()
e.preventDefault()
}
, keypress: function (e) {
e.stopPropagation()
if (!this.shown) return
switch(e.keyCode) {
......@@ -210,12 +208,12 @@
this.next()
break
}
e.stopPropagation()
}
, blur: function (e) {
var that = this
e.stopPropagation()
e.preventDefault()
setTimeout(function () { that.hide() }, 150)
}
......
Supports Markdown
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