Tested on both MS JVM (Java 1.1) and Sun 1.4 JVM on Windows 2000 and Windows XP, using IE6 and Firefox 1.0 (all combinations).
This fixes the issue I mentioned in:
http://www.realvnc.com/pipermail/vnc-list/2004-August/046419.html
Also described at:
http://www.realvnc.com/pipermail/vnc-list/2004-March/044470.html


Using the RealVNC 4.0 java applet, the tab key was not functioning.
This patch fixes that problem. For compatability with MS JVM, remember to use javac -target 1.1 when compiling the jar file with Sun's compiler.


Here's the diff:
$ diff -c DesktopWindow.java DesktopWindow.java.patch
*** DesktopWindow.java  Fri Jun 11 17:10:24 2004
--- DesktopWindow.java.patch    Tue Jan  4 00:11:00 2005
***************
*** 38,43 ****
--- 38,51 ----

cursor = new rfb.Cursor();
cursorBacking = new rfb.ManagedPixelBuffer();
+
+ try {
+ Class[] paramClasses = new Class[] { Boolean.TYPE };
+ java.lang.reflect.Method method =
+ this.getClass().getMethod("setFocusTraversalKeysEnabled", paramClasses);
+ Object[] parameters = new Object[] { new Boolean(false) };
+ method.invoke(this, parameters);
+ } catch (Exception e) { }
}


   // initGraphics() is needed because for some reason you can't call

I hope something like this gets included in the official VNC distribution.

-Roland McIntosh
_______________________________________________
VNC-List mailing list
[email protected]
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to