This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
private KeyEvent lastKeyPressed; // which posted a popup from main menu
private char lastCharacter;
private int lastModifiers;
--
lastKeyPressed = ev;
this.lastCharacter = ev.getKeyChar();
this.lastModifiers = ev.getModifiers();
&& lastKeyPressed != null
&& lastKeyPressed.getModifiers() == InputEvent.ALT_MASK
&& this.lastModifiers == InputEvent.ALT_MASK
&& lastKeyPressed.getKeyChar() == ev.getKeyChar()
&& this.lastCharacter == ev.getKeyChar()