summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2009-10-01 17:31:15 +0000
committerFelipe Heidrich <fheidric>2009-10-01 17:31:15 +0000
commit0c27428c4ddae0480744169b5d145053d94ee18c (patch)
treedea96690710e79690ae753d50f20b2c4a0212aac
parentd05aa80b5c95686b9e489622ce43122baa2b23dd (diff)
downloadeclipse.platform.swt-0c27428c4ddae0480744169b5d145053d94ee18c.tar.gz
eclipse.platform.swt-0c27428c4ddae0480744169b5d145053d94ee18c.tar.xz
eclipse.platform.swt-0c27428c4ddae0480744169b5d145053d94ee18c.zip
*** empty log message ***
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet25.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet25.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet25.java
index 93bc7e20a6..7dd9045bd8 100644
--- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet25.java
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet25.java
@@ -130,6 +130,12 @@ public static void main (String [] args) {
string += " stateMask=0x" + Integer.toHexString (e.stateMask) + stateMask (e.stateMask) + ",";
string += " keyCode=0x" + Integer.toHexString (e.keyCode) + " " + keyCode (e.keyCode) + ",";
string += " character=0x" + Integer.toHexString (e.character) + " " + character (e.character);
+ if ((e.stateMask & SWT.LOCATION_MASK) != 0) {
+ string += " location=";
+ if ((e.stateMask & SWT.LOCATION_LEFT) != 0) string += "LEFT";
+ if ((e.stateMask & SWT.LOCATION_RIGHT) != 0) string += "RIGHT";
+ if ((e.stateMask & SWT.LOCATION_KEYPAD) != 0) string += "KEYPAD";
+ }
System.out.println (string);
}
};