Add up/down keyboard arrow navigation to app display

svn path=/trunk/; revision=91
This commit is contained in:
Colin Walters
2008-11-28 23:06:07 +00:00
parent 10d5aaca83
commit eaf2bbfaf8
2 changed files with 85 additions and 19 deletions

View File

@ -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",