Skip to content

Commit d5b2172

Browse files
committed
Replace Inforamtion control on mouse click 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 d5b2172

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
@@ -1045,6 +1045,15 @@ int handleGotFocus(long pView, long pArg) {
10451045
ignoreFocus = true;
10461046
OS.SendMessage (browser.handle, OS.WM_SETFOCUS, 0, 0);
10471047
ignoreFocus = false;
1048+
1049+
Event newEvent = new Event();
1050+
newEvent.widget = browser;
1051+
Point position = browser.getDisplay().getCursorLocation(); // To Points
1052+
position = browser.getDisplay().map(null, browser, position);
1053+
newEvent.x = position.x; newEvent.y = position.y;
1054+
newEvent.type = SWT.MouseEnter;
1055+
browser.notifyListeners(newEvent.type, newEvent);
1056+
10481057
return COM.S_OK;
10491058
}
10501059

0 commit comments

Comments
 (0)