8022997: [macosx] Remaining duplicated key events
Reviewed-by: anthony, serb
This commit is contained in:
parent
f996af2115
commit
1aa32ce1d0
@ -296,7 +296,7 @@ static unichar AWTKeyToMacShortcut(jint awtKey, BOOL doShift) {
|
||||
|
||||
case java_awt_event_KeyEvent_VK_HELP : macKey = NSHelpFunctionKey; break;
|
||||
case java_awt_event_KeyEvent_VK_TAB : macKey = NSTabCharacter; break;
|
||||
case java_awt_event_KeyEvent_VK_ENTER : macKey = NSCarriageReturnCharacter; break;
|
||||
case java_awt_event_KeyEvent_VK_ENTER : macKey = NSNewlineCharacter; break;
|
||||
case java_awt_event_KeyEvent_VK_BACK_SPACE : macKey = NSBackspaceCharacter; break;
|
||||
case java_awt_event_KeyEvent_VK_DELETE : macKey = NSDeleteCharacter; break;
|
||||
case java_awt_event_KeyEvent_VK_CLEAR : macKey = NSClearDisplayFunctionKey; break;
|
||||
|
@ -35,11 +35,12 @@ import java.awt.event.*;
|
||||
import javax.swing.*;
|
||||
|
||||
public class ActionListenerCalledTwiceTest {
|
||||
static String menuItems[] = { "Item1", "Item2", "Item3" };
|
||||
static String menuItems[] = { "Item1", "Item2", "Item3", "Item4" };
|
||||
static KeyStroke keyStrokes[] = {
|
||||
KeyStroke.getKeyStroke(KeyEvent.VK_E, InputEvent.META_MASK),
|
||||
KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0),
|
||||
KeyStroke.getKeyStroke(KeyEvent.VK_UP, InputEvent.SHIFT_MASK),
|
||||
KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, InputEvent.META_MASK)
|
||||
};
|
||||
|
||||
static volatile int listenerCallCounter = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user