Close suggestions when escape key pressed.

Fixes (Bug 43051)

Change-Id: I5e6baeec62da49b10793f2ebe7d341697a63f9c4
This commit is contained in:
Rob Moen 2012-12-12 16:54:11 -08:00
parent 112a22f820
commit c9da8f61dd

View file

@ -312,6 +312,10 @@
}
return;
}
// Escape
} else if ( e.which === 27 ) {
close();
return;
// Normal input.
} else {
onInput();