Skip to content

Commit

Permalink
Replace Inforamtion control on mouse click in Edge
Browse files Browse the repository at this point in the history
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 eclipse-platform#212
  • Loading branch information
amartya4256 committed Sep 30, 2024
1 parent ebe6ec4 commit d6dbc1b
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -994,6 +994,15 @@ int handleGotFocus(long pView, long pArg) {
ignoreFocus = true;
OS.SendMessage (browser.handle, OS.WM_SETFOCUS, 0, 0);
ignoreFocus = false;

Event newEvent = new Event();
newEvent.widget = browser;
Point position = browser.getDisplay().getCursorLocation(); // To Points
position = browser.getDisplay().map(null, browser, position);
newEvent.x = position.x; newEvent.y = position.y;
newEvent.type = SWT.MouseEnter;
browser.notifyListeners(newEvent.type, newEvent);

return COM.S_OK;
}

Expand Down

0 comments on commit d6dbc1b

Please sign in to comment.