desktop-file-utils: update to 0.28
[oi-userland.git] / components / desktop / realvnc-java-client / patches / realvnc-java-client-05-g11n-use-remote-im.patch
blob355513ff7205042aad51382dfedf69e3f6da41be
1 --- vnc-4_1-javasrc/java/rfb/Keysyms.java.orig 2008-01-15 15:55:10.561444000 +0900
2 +++ vnc-4_1-javasrc/java/rfb/Keysyms.java 2008-01-15 15:56:25.564721000 +0900
3 @@ -63,6 +63,12 @@ public class Keysyms {
4 public static final int script_switch = 0xFF7E;
5 public static final int Num_Lock = 0xFF7F;
7 + public static final int KP_Left = 0xFF96;
8 + public static final int KP_Up = 0xFF97;
9 + public static final int KP_Right = 0xFF98;
10 + public static final int KP_Down = 0xFF99;
11 + public static final int KP_Begin = 0xFF9d;
13 public static final int F1 = 0xFFBE;
14 public static final int F2 = 0xFFBF;
15 public static final int F3 = 0xFFC0;
16 @@ -84,4 +90,7 @@ public class Keysyms {
17 public static final int Meta_R = 0xFFE8;
18 public static final int Alt_L = 0xFFE9;
19 public static final int Alt_R = 0xFFEA;
21 + public static final int Kanji = 0xFF21;
22 + public static final int Henkan_Mode = 0xFF23;
24 --- vnc-4_1-javasrc/java/rfb/UnicodeToKeysym.java.orig 2008-01-15 15:12:34.345738000 +0900
25 +++ vnc-4_1-javasrc/java/rfb/UnicodeToKeysym.java 2008-01-15 17:11:07.898546000 +0900
26 @@ -775,6 +775,11 @@ public class UnicodeToKeysym {
27 (unicode >= 0xa0 && unicode <= 0xff))
28 return unicode;
30 + /* From HALFWIDTH IDEOGRAPHIC FULL STOP (U+FF61)
31 + * To HALFWIDTH KATAKANA SEMI-VOICED SOURND MARK (U+FF9F) */
32 + if ((unicode >= 0xff61 && unicode <= 0xff9f))
33 + return unicode - 64192;
35 int min = 0;
36 int max = table.length - 1;
37 int mid;
38 --- vnc-4_1-javasrc/java/vncviewer/CConn.java.orig 2008-01-15 15:55:46.024607000 +0900
39 +++ vnc-4_1-javasrc/java/vncviewer/CConn.java 2008-01-15 17:24:45.512185000 +0900
40 @@ -521,6 +521,16 @@ public class CConn extends rfb.CConnecti
41 case KeyEvent.VK_PRINTSCREEN: keysym = rfb.Keysyms.Print; break;
42 case KeyEvent.VK_PAUSE: keysym = rfb.Keysyms.Pause; break;
43 case KeyEvent.VK_INSERT: keysym = rfb.Keysyms.Insert; break;
44 + case KeyEvent.VK_KP_LEFT: keysym = rfb.Keysyms.KP_Left; break;
45 + case KeyEvent.VK_KP_UP: keysym = rfb.Keysyms.KP_Up; break;
46 + case KeyEvent.VK_KP_RIGHT: keysym = rfb.Keysyms.KP_Right; break;
47 + case KeyEvent.VK_KP_DOWN: keysym = rfb.Keysyms.KP_Down; break;
48 + case KeyEvent.VK_BEGIN: keysym = rfb.Keysyms.KP_Begin; break;
49 + case KeyEvent.VK_ACCEPT: keysym = rfb.Keysyms.Execute; break;
50 + case KeyEvent.VK_CONVERT: keysym = rfb.Keysyms.Kanji; break;
51 + case KeyEvent.VK_INPUT_METHOD_ON_OFF:
52 + keysym = rfb.Keysyms.Henkan_Mode; break;
53 + case KeyEvent.VK_KANA_LOCK: keysym = rfb.Keysyms.Mode_switch; break;
54 default: return;
57 --- vnc-4_1-javasrc/java/vncviewer/DesktopWindow.java.orig 2008-01-15 15:56:17.533387000 +0900
58 +++ vnc-4_1-javasrc/java/vncviewer/DesktopWindow.java 2008-01-15 15:56:25.574174000 +0900
59 @@ -48,6 +48,8 @@ class DesktopWindow extends Canvas imple
60 cursorBacking = new rfb.ManagedPixelBuffer();
61 addMouseListener(this);
62 addMouseMotionListener(this);
63 + // Disable local input methods and use remote input methods.
64 + enableInputMethods(false);
65 addKeyListener(this);
66 this.setFocusTraversalKeysEnabled(false);
67 addFocusListener(this);