Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarvin Mueller2019-02-26 01:40:59 -0500
committerMarvin Mueller2019-02-26 01:40:59 -0500
commita3f51d55c2b8662dd0a25457d8313835d9c2cf39 (patch)
tree94c453c997a2818904ab35a6b0881ae71837dff5
parent7e8ea46122f80f58521f268d912777546aa4fce1 (diff)
downloadorg.eclipse.jubula.core-a3f51d55c2b8662dd0a25457d8313835d9c2cf39.tar.gz
org.eclipse.jubula.core-a3f51d55c2b8662dd0a25457d8313835d9c2cf39.tar.xz
org.eclipse.jubula.core-a3f51d55c2b8662dd0a25457d8313835d9c2cf39.zip
Fix for Bug 544377
-rw-r--r--org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/driver/KeyboardHelper.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/driver/KeyboardHelper.java b/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/driver/KeyboardHelper.java
index 891ea49c9..87d812c58 100644
--- a/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/driver/KeyboardHelper.java
+++ b/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/driver/KeyboardHelper.java
@@ -122,8 +122,11 @@ public class KeyboardHelper {
* @return the KeyStroke for the given character.
*/
public KeyStroke getKeyStroke(char character) {
- KeyStroke keyStroke = null;
-
+ KeyStroke keyStroke = m_mapping.get(new Character(character));
+ // the mapping file goes first after this the default behavior
+ if (keyStroke != null) {
+ return keyStroke;
+ }
if (Character.isUpperCase(character)) {
final char lowChar = Character.toLowerCase(character);
keyStroke = new KeyStroke(lowChar);
@@ -133,7 +136,6 @@ public class KeyboardHelper {
if (isSingleKey(character)) {
return new KeyStroke(character);
}
- keyStroke = m_mapping.get(new Character(character));
// if no KeyStroke was found, return a KeyStroke with the given
// character and log in debug.

Back to the top