< prev index next >

src/java.desktop/unix/classes/sun/awt/X11/XMenuItemPeer.java

Print this page

        

@@ -321,15 +321,15 @@
     /**
      * This function is invoked when the user clicks
      * on menu item.
      * @param when the timestamp of action event
      */
-    void action(long when) {
+    void action(long when, int modifiers) {
         if (!isSeparator() && isTargetItemEnabled()) {
             XWindow.postEventStatic(new ActionEvent(target, ActionEvent.ACTION_PERFORMED,
                                                     getTargetActionCommand(), when,
-                                                    0));
+                                                    modifiers));
         }
     }
     /************************************************
      *
      * Text metrics
< prev index next >