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 @@ -1082,6 +1082,16 @@ int handleGotFocus(long pView, long pArg) {
10821082 // calls in #browserFocusIn(Event).
10831083 ignoreFocus = true ;
10841084 OS .SendMessage (browser .handle , OS .WM_SETFOCUS , 0 , 0 );
1085+
1086+ Event newEvent = new Event ();
1087+ newEvent .widget = browser ;
1088+ Point position = browser .getDisplay ().getCursorLocation (); // To Points
1089+ position = browser .getDisplay ().map (null , browser , position );
1090+ newEvent .x = position .x ;
1091+ newEvent .y = position .y ;
1092+ newEvent .type = SWT .FocusIn ;
1093+ browser .notifyListeners (newEvent .type , newEvent );
1094+
10851095 ignoreFocus = false ;
10861096 return COM .S_OK ;
10871097}
You can’t perform that action at this time.
0 commit comments