diff options
author | Sven Gothel <[email protected]> | 2011-11-18 09:49:00 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-11-18 09:49:00 +0100 |
commit | 82773da0e9d6253af935ca809f72aa21a125c65a (patch) | |
tree | 346b385532b5d9405759a80301a0725a7db7d5be /src/newt/classes/com/jogamp | |
parent | 3db4e89cb2c36f63c6d0a8f3450705d1ef3694b0 (diff) |
Fix NewtCanvasAWT Focus Traversal (focusable)
- need to set setFocusable(true) manually due to z-order (newt child upfront)
Diffstat (limited to 'src/newt/classes/com/jogamp')
-rw-r--r-- | src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java | 4 |
1 files changed, 4 insertions, 0 deletions
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); |