Bug 394949 - [CSS Spy] Using keyboard to change highlighted widget results in focus-change
Ensure the highlighting shell is made NO_FOCUS and ON_TOP.
diff --git a/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyDialog.java b/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyDialog.java
index e2ad358..f986d15 100644
--- a/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyDialog.java
+++ b/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyDialog.java
@@ -362,9 +362,9 @@
// bounds = slectedShell.getDisplay().map(null, selectedShell,
// bounds);
}
- Shell highlight = new Shell(selectedShell, SWT.NO_TRIM | SWT.MODELESS); // appears
- // on
- // top
+ // create the highlight; want it to appear on top
+ Shell highlight = new Shell(selectedShell, SWT.NO_TRIM | SWT.MODELESS
+ | SWT.NO_FOCUS | SWT.ON_TOP);
highlight.setBackground(display.getSystemColor(SWT.COLOR_RED));
Region highlightRegion = new Region();
highlightRegion.add(0, 0, 1, bounds.height + 2);