mirror of
https://github.com/igniterealtime/Spark.git
synced 2026-02-04 19:25:37 +00:00
ChatContainer: remove concatenation with an empty string
This commit is contained in:
committed by
Guus der Kinderen
parent
fbd80d46a1
commit
922a017460
@ -175,9 +175,9 @@ public class ChatContainer extends SparkTabbedPane implements MessageListener, C
|
||||
String leftStrokeString = org.jivesoftware.spark.util.StringUtils.keyStroke2String(leftStroke);
|
||||
|
||||
// Handle Left Arrow
|
||||
this.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke("alt " + leftStrokeString + ""), "navigateLeft");
|
||||
this.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("alt " + leftStrokeString + ""), "navigateLeft");
|
||||
this.getInputMap(JComponent.WHEN_FOCUSED).put(KeyStroke.getKeyStroke("alt " + leftStrokeString + ""), "navigateLeft");
|
||||
this.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke("alt " + leftStrokeString), "navigateLeft");
|
||||
this.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("alt " + leftStrokeString), "navigateLeft");
|
||||
this.getInputMap(JComponent.WHEN_FOCUSED).put(KeyStroke.getKeyStroke("alt " + leftStrokeString), "navigateLeft");
|
||||
this.getActionMap().put("navigateLeft", new AbstractAction("navigateLeft") {
|
||||
private static final long serialVersionUID = -8677467560602512074L;
|
||||
|
||||
@ -191,9 +191,9 @@ public class ChatContainer extends SparkTabbedPane implements MessageListener, C
|
||||
String rightStrokeString = org.jivesoftware.spark.util.StringUtils.keyStroke2String(rightStroke);
|
||||
|
||||
// Handle Right Arrow
|
||||
this.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke("alt " + rightStrokeString + ""), "navigateRight");
|
||||
this.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("alt " + rightStrokeString + ""), "navigateRight");
|
||||
this.getInputMap(JComponent.WHEN_FOCUSED).put(KeyStroke.getKeyStroke("alt " + rightStrokeString + ""), "navigateRight");
|
||||
this.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke("alt " + rightStrokeString), "navigateRight");
|
||||
this.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("alt " + rightStrokeString), "navigateRight");
|
||||
this.getInputMap(JComponent.WHEN_FOCUSED).put(KeyStroke.getKeyStroke("alt " + rightStrokeString), "navigateRight");
|
||||
|
||||
this.getActionMap().put("navigateRight", new AbstractAction("navigateRight") {
|
||||
private static final long serialVersionUID = -7676330627598261416L;
|
||||
|
||||
Reference in New Issue
Block a user