Fix 'u' to jump to user's preferred change screen
Honor the user preference and jump to the preferred screen type when going up from an old style PatchScreen. The old style is still used for unified diffs of binary files. Change-Id: I92c4f95ef4a0e5e9de5196f614af62474ef96c05
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
package com.google.gerrit.client.patches;
|
||||
|
||||
import com.google.gerrit.client.Gerrit;
|
||||
import com.google.gerrit.client.changes.ChangeScreen;
|
||||
import com.google.gerrit.common.PageLinks;
|
||||
import com.google.gerrit.reviewdb.client.PatchSet;
|
||||
import com.google.gwt.event.dom.client.KeyPressEvent;
|
||||
@@ -31,6 +30,6 @@ class UpToChangeCommand extends KeyCommand {
|
||||
|
||||
@Override
|
||||
public void onKeyPress(final KeyPressEvent event) {
|
||||
Gerrit.display(PageLinks.toChange(patchSetId), new ChangeScreen(patchSetId));
|
||||
Gerrit.display(PageLinks.toChange(patchSetId));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user