зеркало из https://github.com/mozilla/pjs.git
Bug 677252 part.2 Add Eisu keycode for Japanese keyboard layout of Mac r=smichaud, sr=smaug
This commit is contained in:
Родитель
d759f311ba
Коммит
9ecf37bd46
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче