============== Begin Patch ==================
$ diff -c DesktopWindow.java DesktopWindow.java.patched
*** DesktopWindow.java
--- DesktopWindow.java.patched
***************
*** 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 ============== End Patch ==================
Phil Budne wrote:
http://www.javaworld.com/javaworld/jw-07-1998/jw-07-swing-focus-p2.html
says:
With Swing components, you can override the isManagingFocus method to return true and get Tab and Shift-Tab keystrokes sent to the component's key listener.
Since AWT seems to eat tabs (for moving input focus) does anyone know if using Swing instead would be of any use?
phil _______________________________________________ VNC-List mailing list VNC-List@realvnc.com To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
_______________________________________________ VNC-List mailing list VNC-List@realvnc.com To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list