Remove debug logging, make activation work for non-search mode too
svn path=/trunk/; revision=99
This commit is contained in:
parent
dd4db82475
commit
b535a8949b
@ -316,12 +316,10 @@ AppDisplay.prototype = {
|
|||||||
_selectIndex: function(index) {
|
_selectIndex: function(index) {
|
||||||
if (this._selectedIndex != -1) {
|
if (this._selectedIndex != -1) {
|
||||||
let prev = this._findDisplayedByIndex(this._selectedIndex);
|
let prev = this._findDisplayedByIndex(this._selectedIndex);
|
||||||
log("demarking " + prev);
|
|
||||||
prev.markSelected(false);
|
prev.markSelected(false);
|
||||||
}
|
}
|
||||||
this._selectedIndex = index;
|
this._selectedIndex = index;
|
||||||
let item = this._findDisplayedByIndex(index);
|
let item = this._findDisplayedByIndex(index);
|
||||||
log("marking " + item);
|
|
||||||
item.markSelected(true);
|
item.markSelected(true);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -95,14 +95,11 @@ Sideshow.prototype = {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
this._searchEntry.connect('activate', function (se) {
|
this._searchEntry.connect('activate', function (se) {
|
||||||
if (!me._searchActive)
|
|
||||||
return false;
|
|
||||||
me._appdisplay.searchActivate();
|
me._appdisplay.searchActivate();
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
this._searchEntry.connect('key-press-event', function (se, e) {
|
this._searchEntry.connect('key-press-event', function (se, e) {
|
||||||
let code = e.get_code();
|
let code = e.get_code();
|
||||||
log("code: " + code);
|
|
||||||
if (code == 111) {
|
if (code == 111) {
|
||||||
me._appdisplay.selectUp();
|
me._appdisplay.selectUp();
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user