Bug #208721. Can't type Unicode Keysyms when compiled with Gtk2. Not part of the default build. Patch from Behnam Esfahbod. r+sr=blizzard, a=chofmann

This commit is contained in:
blizzard%redhat.com 2003-08-21 20:10:58 +00:00
Родитель 6fe396b139
Коммит 80dee27c08
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -212,7 +212,8 @@ GdkKeyCodeToDOMKeyCode(int aKeysym)
PRUint32 nsConvertCharCodeToUnicode(GdkEventKey* aEvent)
{
// Anything above 0xf000 is considered a non-printable
if (aEvent->keyval > 0xf000) {
// Exception: directly encoded UCS characters
if (aEvent->keyval > 0xf000 && (aEvent->keyval & 0xff000000) != 0x01000000) {
// Keypad keys are an exception: they return a value different
// from their non-keypad equivalents, but mozilla doesn't distinguish.