Buggy code:
public class Browser extends Composite { static final String PACKAGE_PREFIX = "org.eclipse.swt.browser." ; static final String ADD_WIDGET_KEY = "org.eclipse.swt.internal.addWidget" ; static final String BROWSER_WINDOW = "org.eclipse.swt.browser.Browser.Window" ; static final int MAX_PROGRESS = 100 ; CloseWindowListener [ ] closeWindowListeners = new CloseWindowListener [ 0 ] ; LocationListener [ ] locationListeners = new LocationListener [ 0 ] ; OpenWindowListener [ ] openWindowListeners = new OpenWindowListener [ 0 ] ; ProgressListener [ ] progressListeners = new ProgressListener [ 0 ] ; StatusTextListener [ ] statusTextListeners = new StatusTextListener [ 0 ] ; TitleListener [ ] titleListeners = new TitleListener [ 0 ] ; VisibilityWindowListener [ ] visibilityWindowListeners = new VisibilityWindowListener [ 0 ] ; static Callback Callback3 ; static Callback Callback7 ; int delegate ; int webViewHandle ; int identifier ; int resourceCount ; String url = "" ; Point location ; Point size ; boolean statusBar = true ; boolean toolBar = true ; boolean doit ; public Browser ( Composite parent , int style ) { } static int eventProc3 ( int nextHandler , int theEvent , int userData ) { } static int eventProc7 ( int webview , int userData , int selector , int arg0 , int arg1 , int arg2 , int arg3 ) { } public void addCloseWindowListener ( CloseWindowListener listener ) { } public void addLocationListener ( LocationListener listener ) { } public void addOpenWindowListener ( OpenWindowListener listener ) { } public void addProgressListener ( ProgressListener listener ) { } public void addStatusTextListener ( StatusTextListener listener ) { } public void addTitleListener ( TitleListener listener ) { } public void addVisibilityWindowListener ( VisibilityWindowListener listener ) { } public boolean back ( ) { } protected void checkSubclass ( ) { } public boolean execute ( String script ) { } public boolean forward ( ) { } public String getUrl ( ) { } int handleCallback ( int nextHandler , int theEvent ) { int eventKind = OS . GetEventKind ( theEvent ) ; switch ( eventKind ) { case OS . kEventRawKeyDown : { doit = false ; <START_BUG> int result = OS . SendEventToEventTarget ( theEvent , OS . GetApplicationEventTarget ( ) ) ; <END_BUG> if ( ! ( doit ) ) return OS . noErr ; break ; } case OS . kEventTextInputUnicodeForKeyEvent : { doit = true ; break ; } } return OS . eventNotHandledErr ; } int handleCallback ( int selector , int arg0 , int arg1 , int arg2 , int arg3 ) { } public boolean isBackEnabled ( ) { } public boolean isForwardEnabled ( ) { } public void refresh ( ) { } public void removeCloseWindowListener ( CloseWindowListener listener ) { } public void removeLocationListener ( LocationListener listener ) { } public void removeOpenWindowListener ( OpenWindowListener listener ) { } public void removeProgressListener ( ProgressListener listener ) { } public void removeStatusTextListener ( StatusTextListener listener ) { } public void removeTitleListener ( TitleListener listener ) { } public void removeVisibilityWindowListener ( VisibilityWindowListener listener ) { } public boolean setText ( String html ) { } public boolean setUrl ( String url ) { } public void stop ( ) { } void didFailProvisionalLoadWithError ( int error , int frame ) { } void didFinishLoadForFrame ( int frame ) { } void didReceiveTitle ( int title , int frame ) { } void didStartProvisionalLoadForFrame ( int frame ) { } void didCommitLoadForFrame ( int frame ) { } void didFinishLoadingFromDataSource ( int identifier , int dataSource ) { } void didFailLoadingWithError ( int identifier , int error , int dataSource ) { } int identifierForInitialRequest ( int request , int dataSource ) { } int willSendRequest ( int identifier , int request , int redirectResponse , int dataSource ) { } void handleNotification ( int notification ) { } int createWebViewWithRequest ( int request ) { } void webViewShow ( int sender ) { } void setFrame ( int frame ) { } void webViewFocus ( ) { } void webViewUnfocus ( ) { } int webViewFirstResponder ( ) { } void makeFirstResponder ( int responder ) { } void webViewClose ( ) { } int contextMenuItemsForElement ( int element , int defaultMenuItems ) { } void setStatusBarVisible ( int visible ) { } void setStatusText ( int text ) { } void setResizable ( int visible ) { } void setToolbarsVisible ( int visible ) { } void decidePolicyForMIMEType ( int type , int request , int frame , int listener ) { } void decidePolicyForNavigationAction ( int actionInformation , int request , int frame , int listener ) { } void decidePolicyForNewWindowAction ( int actionInformation , int request , int frameName , int listener ) { } void unableToImplementPolicyWithError ( int error , int frame ) { } }

Fix:
OS . SendEventToEventTarget ( theEvent , OS . GetApplicationEventTarget ( ) ) ;