changeset 31881:6855efe87d08

8130772: Util.hitMnemonics does not work: getSystemMnemonicKeyCodes() returns ALT_MASK rather than VK_ALT Reviewed-by: serb, alexsch
author aivanov
date Thu, 09 Jul 2015 15:26:37 +0300
parents bbd8378e8a9d
children 0268245131a9
files jdk/test/javax/swing/regtesthelpers/Util.java
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/test/javax/swing/regtesthelpers/Util.java	Thu Jul 09 12:34:12 2015 +0300
+++ b/jdk/test/javax/swing/regtesthelpers/Util.java	Thu Jul 09 15:26:37 2015 +0300
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -29,7 +29,6 @@
 import java.util.LinkedList;
 import java.util.List;
 import java.util.concurrent.Callable;
-//import sun.swing.*;
 
 /**
  * <p>This class contains utilities useful for regression testing.
@@ -264,7 +263,7 @@
         if (osName.contains("OS X")) {
             result.add(KeyEvent.VK_CONTROL);
         }
-        result.add(KeyEvent.ALT_MASK);
+        result.add(KeyEvent.VK_ALT);
         return result;
     }
 }