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 {
5151 public static final int GDK_Caps_Lock = 0xffE5 ;
5252 public static final int GDK_Control_L = 0xffe3 ;
5353 public static final int GDK_Control_R = 0xffe4 ;
54+ public static final int GDK_Copy = 0x1008ff57 ;
55+ public static final int GDK_Cut = 0x1008ff58 ;
5456 public static final int GDK_CURRENT_TIME = 0x0 ;
5557 public static final int GDK_DECOR_BORDER = 0x2 ;
5658 public static final int GDK_DECOR_MAXIMIZE = 0x40 ;
@@ -175,6 +177,7 @@ public class GDK extends OS {
175177 public static final int GDK_PROPERTY_NOTIFY = 16 ;
176178 public static final int GDK_Page_Down = 0xff56 ;
177179 public static final int GDK_Page_Up = 0xff55 ;
180+ public static final int GDK_Paste = 0x1008ff6d ;
178181 public static final int GDK_Pause = 0xff13 ;
179182 public static final int GDK_Print = 0xff61 ;
180183 public static final int GDK_Return = 0xff0d ;
Original file line number Diff line number Diff line change @@ -3325,6 +3325,30 @@ public class SWT {
33253325 */
33263326 public static final int PRINT_SCREEN = KEYCODE_BIT + 87 ;
33273327
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+
33283352 /**
33293353 * The <code>MessageBox</code> style constant for error icon
33303354 * behavior (value is 1).
Original file line number Diff line number Diff line change @@ -480,6 +480,9 @@ public void stop() {
480480 {GDK .GDK_Print , SWT .PRINT_SCREEN },
481481 {GDK .GDK_Help , SWT .HELP },
482482
483+ {GDK .GDK_Copy , SWT .COPY },
484+ {GDK .GDK_Cut , SWT .CUT },
485+ {GDK .GDK_Paste , SWT .PASTE },
483486 };
484487
485488 /* Cache pressed modifier state. See Bug 537025. */
You can’t perform that action at this time.
0 commit comments