mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-23 19:09:49 +00:00
Fixing bug 264325. Patch from ginn.chen@sun.com. Home/End/PgUp/PgDn doesn't work in Input/TextArea/Composer/MailNews on Solaris Xserver. r=bryner@brianryner.com, sr=jst@mozilla.org, a=brendan@mozilla.org
This commit is contained in:
parent
49287c937e
commit
7b8181ffb9
@ -237,16 +237,6 @@ DOMKeyCodeToGdkKeyCode(PRUint32 aKeysym)
|
||||
if (aKeysym >= NS_VK_NUMPAD0 && aKeysym <= NS_VK_NUMPAD9)
|
||||
return aKeysym - NS_VK_NUMPAD0 + GDK_KP_0;
|
||||
|
||||
// map Sun Keyboard special keysyms
|
||||
if (IS_XSUN_XSERVER(GDK_DISPLAY())) {
|
||||
length = NS_ARRAY_LENGTH(nsSunKeycodes);
|
||||
for (i = 0; i < length; ++i) {
|
||||
if (nsSunKeycodes[i].vkCode == aKeysym) {
|
||||
return nsSunKeycodes[i].keysym;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// misc other things
|
||||
length = NS_ARRAY_LENGTH(nsKeycodes);
|
||||
for (i = 0; i < length; ++i) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user