File tree Expand file tree Collapse file tree 3 files changed +30
-0
lines changed
Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk
gtk/org/eclipse/swt/widgets Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ public class GDK extends OS {
51
51
public static final int GDK_Caps_Lock = 0xffE5 ;
52
52
public static final int GDK_Control_L = 0xffe3 ;
53
53
public static final int GDK_Control_R = 0xffe4 ;
54
+ public static final int GDK_Copy = 0x1008ff57 ;
55
+ public static final int GDK_Cut = 0x1008ff58 ;
54
56
public static final int GDK_CURRENT_TIME = 0x0 ;
55
57
public static final int GDK_DECOR_BORDER = 0x2 ;
56
58
public static final int GDK_DECOR_MAXIMIZE = 0x40 ;
@@ -175,6 +177,7 @@ public class GDK extends OS {
175
177
public static final int GDK_PROPERTY_NOTIFY = 16 ;
176
178
public static final int GDK_Page_Down = 0xff56 ;
177
179
public static final int GDK_Page_Up = 0xff55 ;
180
+ public static final int GDK_Paste = 0x1008ff6d ;
178
181
public static final int GDK_Pause = 0xff13 ;
179
182
public static final int GDK_Print = 0xff61 ;
180
183
public static final int GDK_Return = 0xff0d ;
Original file line number Diff line number Diff line change @@ -3325,6 +3325,30 @@ public class SWT {
3325
3325
*/
3326
3326
public static final int PRINT_SCREEN = KEYCODE_BIT + 87 ;
3327
3327
3328
+ /**
3329
+ * Keyboard event constant representing the copy
3330
+ * key (value is (1<<24)+88).
3331
+ *
3332
+ * @since 4.38
3333
+ */
3334
+ public static final int COPY = KEYCODE_BIT + 88 ;
3335
+
3336
+ /**
3337
+ * Keyboard event constant representing the cut
3338
+ * key (value is (1<<24)+89).
3339
+ *
3340
+ * @since 4.38
3341
+ */
3342
+ public static final int CUT = KEYCODE_BIT + 89 ;
3343
+
3344
+ /**
3345
+ * Keyboard event constant representing the paste
3346
+ * key (value is (1<<24)+90).
3347
+ *
3348
+ * @since 4.38
3349
+ */
3350
+ public static final int PASTE = KEYCODE_BIT + 90 ;
3351
+
3328
3352
/**
3329
3353
* The <code>MessageBox</code> style constant for error icon
3330
3354
* behavior (value is 1).
Original file line number Diff line number Diff line change @@ -480,6 +480,9 @@ public void stop() {
480
480
{GDK .GDK_Print , SWT .PRINT_SCREEN },
481
481
{GDK .GDK_Help , SWT .HELP },
482
482
483
+ {GDK .GDK_Copy , SWT .COPY },
484
+ {GDK .GDK_Cut , SWT .CUT },
485
+ {GDK .GDK_Paste , SWT .PASTE },
483
486
};
484
487
485
488
/* Cache pressed modifier state. See Bug 537025. */
You can’t perform that action at this time.
0 commit comments