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:
parent
785a9090cd
commit
55661b1ca1
@ -75,6 +75,7 @@ public interface GerritConstants extends Constants {
|
|||||||
String sectionJumping();
|
String sectionJumping();
|
||||||
String jumpAllOpen();
|
String jumpAllOpen();
|
||||||
String jumpAllMerged();
|
String jumpAllMerged();
|
||||||
|
String jumpAllAbandoned();
|
||||||
String jumpMine();
|
String jumpMine();
|
||||||
String jumpMineDrafts();
|
String jumpMineDrafts();
|
||||||
String jumpMineWatched();
|
String jumpMineWatched();
|
||||||
|
@ -58,6 +58,7 @@ keyHelp = Press '?' to view keyboard shortcuts
|
|||||||
sectionJumping = Jumping
|
sectionJumping = Jumping
|
||||||
jumpAllOpen = Go to all open changes
|
jumpAllOpen = Go to all open changes
|
||||||
jumpAllMerged = Go to all merged changes
|
jumpAllMerged = Go to all merged changes
|
||||||
|
jumpAllAbandoned = Go to all abandoned changes
|
||||||
jumpMine = Go to my dashboard
|
jumpMine = Go to my dashboard
|
||||||
jumpMineWatched = Go to watched changes
|
jumpMineWatched = Go to watched changes
|
||||||
jumpMineDrafts = Go to drafts
|
jumpMineDrafts = Go to drafts
|
||||||
|
@ -38,6 +38,12 @@ class JumpKeys {
|
|||||||
Gerrit.display(PageLinks.ALL_MERGED);
|
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()) {
|
if (Gerrit.isSignedIn()) {
|
||||||
jumps.add(new KeyCommand(0, 'i', Gerrit.C.jumpMine()) {
|
jumps.add(new KeyCommand(0, 'i', Gerrit.C.jumpMine()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user