From 82773da0e9d6253af935ca809f72aa21a125c65a Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 18 Nov 2011 09:49:00 +0100 Subject: Fix NewtCanvasAWT Focus Traversal (focusable) - need to set setFocusable(true) manually due to z-order (newt child upfront) --- src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/newt/classes/com') diff --git a/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java b/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java index 18ecdf772..9bde90bc3 100644 --- a/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java +++ b/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java @@ -400,6 +400,10 @@ public class NewtCanvasAWT extends java.awt.Canvas implements WindowClosingProto configureNewtChild(true); newtChild.sendWindowEvent(WindowEvent.EVENT_WINDOW_RESIZED); // trigger a resize/relayout to listener newtChild.windowRepaint(0, 0, w, h); + + // force this AWT Canvas to be focus-able, + // since this it is completely covered by the newtChild (z-order). + setFocusable(true); } else { configureNewtChild(false); newtChild.setVisible(false); -- cgit v1.2.3