skin: sync up the focus between main and key window
authorgiwoong.kim <giwoong.kim@samsung.com>
Fri, 28 Dec 2012 07:41:27 +0000 (16:41 +0900)
committergiwoong.kim <giwoong.kim@samsung.com>
Fri, 28 Dec 2012 07:41:27 +0000 (16:41 +0900)
I added some workaround for sync up the focus
between main window and key window in general skin.

Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java

index 876dc1e01367971cf8ce13f99c196c9705162ec2..e65a8bc62eaf01623bc93efd7418e4ff8c2997bb 100644 (file)
@@ -464,6 +464,15 @@ public class EmulatorSkin {
                        @Override
                        public void focusGained(FocusEvent event) {
                                logger.info("gain focus");
+
+                               /* temp : control the key window focus */
+                               if (isOnTop == false && isControlPanel == true) {
+                                       if (controlPanel != null &&
+                                                       controlPanel.isAttach() != SWT.NONE) {
+                                               SkinUtil.setTopMost(controlPanel.getShell(), true);
+                                               SkinUtil.setTopMost(controlPanel.getShell(), false);
+                                       }
+                               }
                        }
 
                        public void focusLost(FocusEvent event) {