21596
|
1 |
<!--
|
|
2 |
Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
|
|
3 |
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
4 |
|
|
5 |
This code is free software; you can redistribute it and/or modify it
|
|
6 |
under the terms of the GNU General Public License version 2 only, as
|
|
7 |
published by the Free Software Foundation.
|
|
8 |
|
|
9 |
This code is distributed in the hope that it will be useful, but WITHOUT
|
|
10 |
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
11 |
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
12 |
version 2 for more details (a copy is included in the LICENSE file that
|
|
13 |
accompanied this code).
|
|
14 |
|
|
15 |
You should have received a copy of the GNU General Public License version
|
|
16 |
2 along with this work; if not, write to the Free Software Foundation,
|
|
17 |
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
18 |
|
|
19 |
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
20 |
or visit www.oracle.com if you need additional information or have any
|
|
21 |
questions.
|
|
22 |
-->
|
|
23 |
|
2
|
24 |
<html>
|
|
25 |
<!--
|
|
26 |
@test
|
|
27 |
@bug 4490692
|
|
28 |
@author Naoto Sato
|
|
29 |
@ignore The fix for this problem was backed out for 5057184. Remove this "ignore" tag when it is fixed again.
|
|
30 |
@run applet/manual=yesno bug4490692.html
|
|
31 |
-->
|
|
32 |
<head>
|
|
33 |
<title>Test for KEY_PRESS event for accented characters</title>
|
|
34 |
</head>
|
|
35 |
|
|
36 |
<body>
|
|
37 |
<h1>Test for KEY_PRESS event for accented characters: Bug id 4490692</h1>
|
|
38 |
|
|
39 |
This test is for unix platforms only. Press OK if you are not
|
|
40 |
testing on those platforms.
|
|
41 |
|
|
42 |
Before the test, you need to modify the keyboard mapping for X by issueing
|
|
43 |
the following command:
|
|
44 |
|
|
45 |
xmodmap -e 'keycode 60 = aacute' (this is for Solaris Sparc keyboard)
|
|
46 |
xmodmap -e 'keycode 23 = aacute' (this is for Linux PC keyboard)
|
|
47 |
|
|
48 |
This command lets you type 'a with acute' character when you press 'Tab' keytop. <b>Please
|
|
49 |
do not fail to restore the original key mapping by doing the following after the test</b>
|
|
50 |
|
|
51 |
xmodmap -e 'keycode 60 = Tab' (this is for Solaris Sparc keyboard)
|
|
52 |
xmodmap -e 'keycode 23 = Tab' (this is for Linux PC keyboard)
|
|
53 |
|
|
54 |
Confirm the following two behaviors:
|
|
55 |
|
|
56 |
"KEYPRESS received for aacute" is displayed when you press 'Tab' keytop.
|
|
57 |
On Solaris Sparc keyboard, The key sequence ("Compose", "a", "'") generates a-acute character in en_US locale
|
|
58 |
|
|
59 |
<APPLET CODE="bug4490692.class" WIDTH=0 HEIGHT=0></APPLET>
|
|
60 |
</body>
|
|
61 |
</html>
|
|
62 |
|
|
63 |
|