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

@@ -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()) {