< prev index next >

test/jdk/java/awt/Robot/ModifierRobotKey/ModifierRobotKeyTest.java

Print this page
rev 59383 : [mq]: final

*** 1,7 **** /* ! * Copyright (c) 2007, 2018, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2007, 2020, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 86,98 **** textKeys = new int[2]; textKeys[0] = KeyEvent.VK_A; String os = System.getProperty("os.name").toLowerCase(); ! if (os.contains("solaris") || os.contains("sunos")) ! textKeys[1] = KeyEvent.VK_S; ! else if (os.contains("os x")) textKeys[1] = KeyEvent.VK_K; else textKeys[1] = KeyEvent.VK_I; textStatus = new boolean[textKeys.length]; --- 86,96 ---- textKeys = new int[2]; textKeys[0] = KeyEvent.VK_A; String os = System.getProperty("os.name").toLowerCase(); ! if (os.contains("os x")) textKeys[1] = KeyEvent.VK_K; else textKeys[1] = KeyEvent.VK_I; textStatus = new boolean[textKeys.length];
< prev index next >