summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal
diff options
context:
space:
mode:
authorScott Kovatch <skovatch>2010-11-17 17:51:18 +0000
committerScott Kovatch <skovatch>2010-11-17 17:51:18 +0000
commit2291cc53864300688c3a58c6df5ee259c93044d9 (patch)
treeaf68be79337ce3155e3db6cbc1cc9159f28fec60 /bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal
parent0596cb1449efda4b7041de386646bd25379c1f2a (diff)
downloadeclipse.platform.swt-2291cc53864300688c3a58c6df5ee259c93044d9.tar.gz
eclipse.platform.swt-2291cc53864300688c3a58c6df5ee259c93044d9.tar.xz
eclipse.platform.swt-2291cc53864300688c3a58c6df5ee259c93044d9.zip
329511 - make keyboard post call conditionally for 10.5.
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CoreGraphicsFull.bridgesupport.extras6
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java6
2 files changed, 12 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CoreGraphicsFull.bridgesupport.extras b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CoreGraphicsFull.bridgesupport.extras
index c61b131c2d..fe64997263 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CoreGraphicsFull.bridgesupport.extras
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CoreGraphicsFull.bridgesupport.extras
@@ -321,6 +321,12 @@
<function name="CGPathRelease" swt_gen="true">
<arg swt_gen="true"></arg>
</function>
+ <function name="CGPostKeyboardEvent" swt_gen="true">
+ <arg swt_gen="true"></arg>
+ <arg swt_gen="true"></arg>
+ <arg swt_gen="true" swt_java_type="boolean"></arg>
+ <retval swt_gen="true"></retval>
+ </function>
<function name="CGPostMouseEvent" swt_variadic_count="4" swt_variadic_java_types="boolean,*">
<arg></arg>
<arg swt_java_type="boolean"></arg>
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java
index 8a143e0708..5cdeb3412b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java
@@ -3418,6 +3418,12 @@ public static final native void CGPathMoveToPoint(int /*long*/ path, int /*long*
*/
public static final native void CGPathRelease(int /*long*/ path);
/**
+ * @param keyChar cast=(CGCharCode)
+ * @param virtualKey cast=(CGKeyCode)
+ * @param keyDown cast=(boolean_t)
+ */
+public static final native int CGPostKeyboardEvent(short keyChar, short virtualKey, boolean keyDown);
+/**
* @param filter cast=(CGEventFilterMask)
* @param state cast=(CGEventSuppressionState)
*/