File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1101,6 +1101,16 @@ int handleGotFocus(long pView, long pArg) {
11011101 // calls in #browserFocusIn(Event).
11021102 ignoreFocus = true ;
11031103 OS .SendMessage (browser .handle , OS .WM_SETFOCUS , 0 , 0 );
1104+
1105+ Event newEvent = new Event ();
1106+ newEvent .widget = browser ;
1107+ Point position = browser .getDisplay ().getCursorLocation (); // To Points
1108+ position = browser .getDisplay ().map (null , browser , position );
1109+ newEvent .x = position .x ;
1110+ newEvent .y = position .y ;
1111+ newEvent .type = SWT .FocusIn ;
1112+ browser .notifyListeners (newEvent .type , newEvent );
1113+
11041114 ignoreFocus = false ;
11051115 return COM .S_OK ;
11061116}
You can’t perform that action at this time.
0 commit comments