From a9494e62a039d2b4bb0c8f7492e273aad44531c5 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 22 Oct 2011 15:53:11 +0200 Subject: NewtCanvasAWT: Cleanup / Remove FIXME tag (impl. is ok) --- src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java b/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java index 47977610f..31d42d21b 100644 --- a/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java +++ b/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java @@ -128,8 +128,7 @@ public class NewtCanvasAWT extends java.awt.Canvas implements WindowClosingProto System.err.println("FocusActionImpl.run() "+Display.getThreadName()); } NewtCanvasAWT.this.requestFocusAWTParent(); - KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager(); - kfm.clearGlobalFocusOwner(); + KeyboardFocusManager.getCurrentKeyboardFocusManager().clearGlobalFocusOwner(); } } FocusActionImpl focusActionImpl = new FocusActionImpl(); @@ -307,10 +306,7 @@ public class NewtCanvasAWT extends java.awt.Canvas implements WindowClosingProto final void requestFocusNEWTChild() { if(null!=newtChild) { newtChild.setFocusAction(null); - // FIXME: Experimental 'steal AWT focus', - // since we have to disable the focus action due to recursion and AWT EDT blocking. - KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager(); - kfm.clearGlobalFocusOwner(); + KeyboardFocusManager.getCurrentKeyboardFocusManager().clearGlobalFocusOwner(); newtChild.requestFocus(); newtChild.setFocusAction(focusAction); } -- cgit v1.2.3