Skip to content

Commit 1126a35

Browse files
committed
Replace Inforamtion control on Focus In in Edge
This commit contributes to the triggering of the event on mouseclick to replace an information control of the javadoc tooltip while using Edge Browser. contributes to #212
1 parent 03f829a commit 1126a35

File tree

1 file changed

+9
-0
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser

1 file changed

+9
-0
lines changed

bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/Edge.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,15 @@ int handleGotFocus(long pView, long pArg) {
10441044
// calls in #browserFocusIn(Event).
10451045
ignoreFocus = true;
10461046
OS.SendMessage (browser.handle, OS.WM_SETFOCUS, 0, 0);
1047+
1048+
Event newEvent = new Event();
1049+
newEvent.widget = browser;
1050+
Point position = browser.getDisplay().getCursorLocation(); // To Points
1051+
position = browser.getDisplay().map(null, browser, position);
1052+
newEvent.x = position.x; newEvent.y = position.y;
1053+
newEvent.type = SWT.FocusIn;
1054+
browser.notifyListeners(newEvent.type, newEvent);
1055+
10471056
ignoreFocus = false;
10481057
return COM.S_OK;
10491058
}

0 commit comments

Comments
 (0)