< prev index next >

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

Print this page

        

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