Bug 677252 part.2 Add Eisu keycode for Japanese keyboard layout of Mac r=smichaud, sr=smaug

This commit is contained in:
Masayuki Nakano 2012-05-17 16:04:16 +09:00
Родитель 4d7f3814a7
Коммит 7d2dab20c0
4 изменённых файлов: 5 добавлений и 0 удалений

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

@ -34,6 +34,7 @@ DEFINE_VK_INTERNAL(_PAUSE),
DEFINE_VK_INTERNAL(_CAPS_LOCK),
DEFINE_VK_INTERNAL(_KANA),
DEFINE_VK_INTERNAL(_HANGUL),
DEFINE_VK_INTERNAL(_EISU),
DEFINE_VK_INTERNAL(_JUNJA),
DEFINE_VK_INTERNAL(_FINAL),
DEFINE_VK_INTERNAL(_HANJA),

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

@ -56,6 +56,7 @@ interface nsIDOMKeyEvent : nsIDOMUIEvent
const unsigned long DOM_VK_CAPS_LOCK = 0x14;
const unsigned long DOM_VK_KANA = 0x15;
const unsigned long DOM_VK_HANGUL = 0x15;
const unsigned long DOM_VK_EISU = 0x16; // Japanese Mac keyboard only
const unsigned long DOM_VK_JUNJA = 0x17;
const unsigned long DOM_VK_FINAL = 0x18;
const unsigned long DOM_VK_HANJA = 0x19;

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

@ -124,6 +124,7 @@ enum
kPowerbookEnterKeyCode = 0x34, // Enter on Powerbook's keyboard is different
// IME keys
kJapanese_Eisu = 0x66,
kJapanese_Kana = 0x68,
kInsertKeyCode = 0x72, // also help key

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

@ -1021,6 +1021,7 @@ TISInputSourceWrapper::ComputeGeckoKeyCode(UInt32 aNativeKeyCode,
case kKeypadDivideKeyCode: return NS_VK_DIVIDE;
// IME keys
case kJapanese_Eisu: return NS_VK_EISU;
case kJapanese_Kana: return NS_VK_KANA;
// these may clash with forward delete and help
@ -3860,6 +3861,7 @@ TextInputHandlerBase::IsSpecialGeckoKey(UInt32 aNativeKeyCode)
case kTabKeyCode:
case kBackspaceKeyCode:
case kJapanese_Eisu:
case kJapanese_Kana:
case kHomeKeyCode: