From 6bd31dd211a298e8f03eb52df9b4460e831eda66 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 3 Dec 2008 19:24:50 +0000 Subject: [PATCH] Bind Escape to clear search entry svn path=/trunk/; revision=112 --- js/ui/overlay.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/ui/overlay.js b/js/ui/overlay.js index 423b10efd..30028cda6 100644 --- a/js/ui/overlay.js +++ b/js/ui/overlay.js @@ -86,7 +86,10 @@ Sideshow.prototype = { }); this._searchEntry.connect('key-press-event', function (se, e) { let code = e.get_code(); - if (code == 111) { + if (code == 9) { + me._searchEntry.text = ''; + return true; + } else if (code == 111) { me._appdisplay.selectUp(); return true; } else if (code == 116) {