Support to navigate by keys to abandoned changes

Added support to navigate by keys ('g' then 'a')
to the 'All abandoned changes' screen to make
this screen directly accessible by keys.

Change-Id: I0748f952c1ff6f0e377eb67833e6e0f18d291f0f
Signed-off-by: Edwin Kempin <edwin.kempin@gmail.com>
This commit is contained in:
Edwin Kempin 2010-06-24 07:44:15 +02:00 committed by Shawn O. Pearce
parent 785a9090cd
commit 55661b1ca1
3 changed files with 8 additions and 0 deletions

View File

@ -75,6 +75,7 @@ public interface GerritConstants extends Constants {
String sectionJumping();
String jumpAllOpen();
String jumpAllMerged();
String jumpAllAbandoned();
String jumpMine();
String jumpMineDrafts();
String jumpMineWatched();

View File

@ -58,6 +58,7 @@ keyHelp = Press '?' to view keyboard shortcuts
sectionJumping = Jumping
jumpAllOpen = Go to all open changes
jumpAllMerged = Go to all merged changes
jumpAllAbandoned = Go to all abandoned changes
jumpMine = Go to my dashboard
jumpMineWatched = Go to watched changes
jumpMineDrafts = Go to drafts

View File

@ -38,6 +38,12 @@ class JumpKeys {
Gerrit.display(PageLinks.ALL_MERGED);
}
});
jumps.add(new KeyCommand(0, 'a', Gerrit.C.jumpAllAbandoned()) {
@Override
public void onKeyPress(final KeyPressEvent event) {
Gerrit.display(PageLinks.ALL_ABANDONED);
}
});
if (Gerrit.isSignedIn()) {
jumps.add(new KeyCommand(0, 'i', Gerrit.C.jumpMine()) {