Skip to content

Commit ceeeebd

Browse files
committed
Merge branch '2.0'
2 parents 880bb8b + 77300b0 commit ceeeebd

File tree

3 files changed

+9
-30
lines changed

3 files changed

+9
-30
lines changed

src/JNativeHook.iml

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/java/org/jnativehook/keyboard/NativeKeyEvent.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
*/
6767
public class NativeKeyEvent extends NativeInputEvent {
6868
/** The Constant serialVersionUID. */
69-
private static final long serialVersionUID = -1324603336271643339L;
69+
private static final long serialVersionUID = 2909754235120335950L;
7070

7171
/** The raw native key code. */
7272
private int rawCode;
@@ -213,6 +213,7 @@ public class NativeKeyEvent extends NativeInputEvent {
213213
/** Begin Cursor Key Zone */
214214
public static final int VC_UP = 0xE048;
215215
public static final int VC_LEFT = 0xE04B;
216+
public static final int VC_CLEAR = 0xE04C;
216217
public static final int VC_RIGHT = 0xE04D;
217218
public static final int VC_DOWN = 0xE050;
218219

@@ -652,12 +653,14 @@ public static String getKeyText(int keyCode) {
652653
// Begin Cursor Key Zone
653654
case VC_UP:
654655
return Toolkit.getProperty("AWT.up", "Up");
655-
case VC_DOWN:
656-
return Toolkit.getProperty("AWT.down", "Down");
657656
case VC_LEFT:
658657
return Toolkit.getProperty("AWT.left", "Left");
658+
case VC_CLEAR:
659+
return Toolkit.getProperty("AWT.clear", "Clear");
659660
case VC_RIGHT:
660661
return Toolkit.getProperty("AWT.right", "Right");
662+
case VC_DOWN:
663+
return Toolkit.getProperty("AWT.down", "Down");
661664
// End Cursor Key Zone
662665

663666

@@ -880,9 +883,10 @@ public boolean isActionKey() {
880883

881884
// Cursor Key Zone
882885
case VC_UP:
883-
case VC_DOWN:
884886
case VC_LEFT:
887+
case VC_CLEAR:
885888
case VC_RIGHT:
889+
case VC_DOWN:
886890

887891
// Numeric Zone
888892
case VC_NUM_LOCK:

0 commit comments

Comments
 (0)