Skip to content

Commit

Permalink
Replace Inforamtion control on Focus In 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 #212
  • Loading branch information
amartya4256 committed Oct 16, 2024
1 parent ff514e8 commit 378382e
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1082,6 +1082,16 @@ int handleGotFocus(long pView, long pArg) {
// calls in #browserFocusIn(Event).
ignoreFocus = true;
OS.SendMessage (browser.handle, OS.WM_SETFOCUS, 0, 0);

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.FocusIn;
browser.notifyListeners(newEvent.type, newEvent);

ignoreFocus = false;
return COM.S_OK;
}
Expand Down

0 comments on commit 378382e

Please sign in to comment.