ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt<html>
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt<!--
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt @test
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt @bug 4490692
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt @author Naoto Sato
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt @ignore The fix for this problem was backed out for 5057184. Remove this "ignore" tag when it is fixed again.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt @run applet/manual=yesno bug4490692.html
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt-->
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt <head>
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt <title>Test for KEY_PRESS event for accented characters</title>
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt </head>
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt <body>
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt <h1>Test for KEY_PRESS event for accented characters: Bug id 4490692</h1>
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntThis test is for unix platforms only. Press OK if you are not
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunttesting on those platforms.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntBefore the test, you need to modify the keyboard mapping for X by issueing
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntthe following command:
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntxmodmap -e 'keycode 60 = aacute' (this is for Solaris Sparc keyboard)
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntxmodmap -e 'keycode 23 = aacute' (this is for Linux PC keyboard)
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntThis command lets you type 'a with acute' character when you press 'Tab' keytop. <b>Please
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntdo not fail to restore the original key mapping by doing the following after the test</b>
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntxmodmap -e 'keycode 60 = Tab' (this is for Solaris Sparc keyboard)
ef421f66f47224a42073deaf087378c5d0c9952eEvan Huntxmodmap -e 'keycode 23 = Tab' (this is for Linux PC keyboard)
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntConfirm the following two behaviors:
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt "KEYPRESS received for aacute" is displayed when you press 'Tab' keytop.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt On Solaris Sparc keyboard, The key sequence ("Compose", "a", "'") generates a-acute character in en_US locale
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt<APPLET CODE="bug4490692.class" WIDTH=0 HEIGHT=0></APPLET>
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt</body>
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt</html>
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt