Skip to content

Commit

Permalink
Switch Systems and Weapons Function keys and silence style complaint …
Browse files Browse the repository at this point in the history
…from IDE re:String empty check
  • Loading branch information
Sleet01 committed Aug 5, 2024
1 parent 4eebb0f commit 9aeb5f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions megamek/src/megamek/client/ui/swing/ChatterBox.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public void focusGained(FocusEvent e) {

@Override
public void focusLost(FocusEvent e) {
if (inputField.getText().equals("")) {
if (inputField.getText().isEmpty()) {
inputField.setText(chatPlaceholder);
}
}
Expand All @@ -156,7 +156,7 @@ public void focusLost(FocusEvent e) {
playerChatSplit = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, true,
scrPlayers, new JScrollPane(chatArea));
playerChatSplit.setResizeWeight(0.01);

JPanel subPanel = new JPanel(new BorderLayout());
subPanel.setPreferredSize(new Dimension(284, 80));
subPanel.setMinimumSize(new Dimension(284, 80));
Expand Down
4 changes: 2 additions & 2 deletions megamek/src/megamek/client/ui/swing/util/KeyCommandBind.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ public enum KeyCommandBind {
UD_GENERAL("udGeneral", VK_F1),
UD_PILOT("udPilot", VK_F2),
UD_ARMOR("udArmor", VK_F3),
UD_SYSTEMS("udSystems", VK_F4),
UD_WEAPONS("udWeapons", VK_F5),
UD_WEAPONS("udWeapons", VK_F4),
UD_SYSTEMS("udSystems", VK_F5),
UD_EXTRAS("udExtras", VK_F6),
/** Toggles between Jumping and Walk/Run, also acts as a reset when a unit cannot jump */
TOGGLE_MOVEMODE("toggleJump", VK_J),
Expand Down

0 comments on commit 9aeb5f4

Please sign in to comment.