Add up/down keyboard arrow navigation to app display
svn path=/trunk/; revision=91
This commit is contained in:
@ -95,12 +95,23 @@ _init : function(width) {
|
||||
});
|
||||
});
|
||||
this._searchEntry.connect('activate', function (se) {
|
||||
log("activate " + me._searchActive);
|
||||
if (!me._searchActive)
|
||||
return false;
|
||||
me._appdisplay.searchActivate();
|
||||
return true;
|
||||
});
|
||||
this._searchEntry.connect('key-press-event', function (se, e) {
|
||||
let code = e.get_code();
|
||||
log("code: " + code);
|
||||
if (code == 111) {
|
||||
me._appdisplay.selectUp();
|
||||
return true;
|
||||
} else if (code == 116) {
|
||||
me._appdisplay.selectDown();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
let appsText = new Clutter.Label({ color: SIDESHOW_TEXT_COLOR,
|
||||
font_name: "Sans Bold 14px",
|
||||
|
Reference in New Issue
Block a user