Cleanup the name of the search focus key registration
This is more consistent with the names we use in NavigationTable.
Signed-off-by: Shawn O. Pearce <sop@google.com>
diff --git a/src/main/java/com/google/gerrit/client/SearchPanel.java b/src/main/java/com/google/gerrit/client/SearchPanel.java
index 7e34523..5b16c8f 100644
--- a/src/main/java/com/google/gerrit/client/SearchPanel.java
+++ b/src/main/java/com/google/gerrit/client/SearchPanel.java
@@ -35,7 +35,7 @@
class SearchPanel extends Composite {
private final NpTextBox searchBox;
- private HandlerRegistration focusKey;
+ private HandlerRegistration regFocus;
SearchPanel() {
final FlowPanel body = new FlowPanel();
@@ -88,8 +88,8 @@
@Override
public void onLoad() {
super.onLoad();
- if (focusKey == null) {
- focusKey =
+ if (regFocus == null) {
+ regFocus =
GlobalKey
.addApplication(new KeyCommand(0, '/', Gerrit.C.keySearch()) {
@Override
@@ -104,9 +104,9 @@
@Override
public void onUnload() {
- if (focusKey != null) {
- focusKey.removeHandler();
- focusKey = null;
+ if (regFocus != null) {
+ regFocus.removeHandler();
+ regFocus = null;
}
}