mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
Bug 568625: Ignore extra whitespace in search
svn path=/trunk/; revision=162
This commit is contained in:
parent
ce36eafc2f
commit
5280decb59
1 changed files with 5 additions and 1 deletions
|
|
@ -99,7 +99,11 @@ Sideshow.prototype = {
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue