From e7487a66ba35314844b49a72217d65697c59e1b3 Mon Sep 17 00:00:00 2001 From: Grant Gayed Date: Wed, 23 Jan 2008 14:24:34 +0000 Subject: 133933 (Safari key events) --- .../Eclipse SWT PI/carbon/library/cocoa_custom.c | 7 +++++++ .../carbon/org/eclipse/swt/internal/cocoa/Cocoa.java | 16 +++++++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI') diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/cocoa_custom.c b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/cocoa_custom.c index 75a7f561a4..5522ce6b1d 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/cocoa_custom.c +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/cocoa_custom.c @@ -258,5 +258,12 @@ fail: proc((int)download, user_data, 29, (int)download, (int)filename, 0, 0); } +/* DOMEventListener */ + +- (void)handleEvent:(DOMEvent *)evt +{ + proc((int)evt, user_data, 32, (int)evt, 0, 0, 0); +} + @end diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/cocoa/Cocoa.java b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/cocoa/Cocoa.java index 6495e2b5e3..9b25514045 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/cocoa/Cocoa.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/cocoa/Cocoa.java @@ -142,7 +142,21 @@ public static final int S_elementCount = Cocoa.sel_registerName("elementCount"); public static final int S_elementAtIndex_associatedPoints = Cocoa.sel_registerName("elementAtIndex:associatedPoints:"); //$NON-NLS-1$ public static final int S_setFlatness = Cocoa.sel_registerName("setFlatness:"); //$NON-NLS-1$ public static final int S_setDefaultFlatness = Cocoa.sel_registerName("setDefaultFlatness:"); //$NON-NLS-1$ -public static final int S_convertRect_toView = Cocoa.sel_registerName("convertRect:toView:"); //$NON-NLS-1$ +public static final int S_convertRect_toView = Cocoa.sel_registerName("convertRect:toView:"); //$NON-N/LS-1$ +public static final int S_addEventListenerListenerUseCapture = Cocoa.sel_registerName("addEventListener:listener:useCapture:"); //$NON-NLS-1$ +public static final int S_altKey = Cocoa.sel_registerName("altKey"); //$NON-NLS-1$ +public static final int S_button = Cocoa.sel_registerName("button"); //$NON-NLS-1$ +public static final int S_charCode = Cocoa.sel_registerName("charCode"); //$NON-NLS-1$ +public static final int S_clientX = Cocoa.sel_registerName("clientX"); //$NON-NLS-1$ +public static final int S_clientY = Cocoa.sel_registerName("clientY"); //$NON-NLS-1$ +public static final int S_ctrlKey = Cocoa.sel_registerName("ctrlKey"); //$NON-NLS-1$ +public static final int S_detail = Cocoa.sel_registerName("detail"); //$NON-NLS-1$ +public static final int S_DOMDocument = Cocoa.sel_registerName("DOMDocument"); //$NON-NLS-1$ +public static final int S_keyCode = Cocoa.sel_registerName("keyCode"); //$NON-NLS-1$ +public static final int S_metaKey = Cocoa.sel_registerName("metaKey"); //$NON-NLS-1$ +public static final int S_relatedTarget = Cocoa.sel_registerName("relatedTarget"); //$NON-NLS-1$; +public static final int S_shiftKey = Cocoa.sel_registerName("shiftKey"); //$NON-NLS-1$ +public static final int S_type = Cocoa.sel_registerName("type"); //$NON-NLS-1$ public static final int NSAlphaFirstBitmapFormat = 1 << 0; public static final int NSAlphaNonpremultipliedBitmapFormat = 1 << 1; -- cgit