gnome-shell r162 - trunk/js/ui
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-shell r162 - trunk/js/ui
- Date: Wed, 21 Jan 2009 22:37:02 +0000 (UTC)
Author: walters
Date: Wed Jan 21 22:37:02 2009
New Revision: 162
URL: http://svn.gnome.org/viewvc/gnome-shell?rev=162&view=rev
Log:
Bug 568625: Ignore extra whitespace in search
Modified:
trunk/js/ui/overlay.js
Modified: trunk/js/ui/overlay.js
==============================================================================
--- trunk/js/ui/overlay.js (original)
+++ trunk/js/ui/overlay.js Wed Jan 21 22:37:02 2009
@@ -99,7 +99,11 @@
this._searchEntry.connect('key-press-event', function (se, e) {
let code = e.get_code();
if (code == 9) {
- me._searchEntry.text = '';
+ // A single escape clears the entry, two of them hides the overlay
+ if (me._searchEntry.text == '')
+ me.emit('activated');
+ else
+ me._searchEntry.text = '';
return true;
} else if (code == 111) {
// selectUp and selectDown wrap around in their respective displays
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]