Bug 897885 part.1 Handle kVK_JIS_KeypadComma in widget::TextInputHandler r=smichaud

This commit is contained in:
Masayuki Nakano 2013-08-24 13:53:01 +09:00
parent ea46bf3d63
commit de06376613

View File

@ -914,6 +914,7 @@ TISInputSourceWrapper::InitKeyEvent(NSEvent *aNativeKeyEvent,
case kVK_ANSI_KeypadDivide:
case kVK_ANSI_KeypadEquals:
case kVK_ANSI_KeypadEnter:
case kVK_JIS_KeypadComma:
case kVK_Powerbook_KeypadEnter:
aKeyEvent.location = nsIDOMKeyEvent::DOM_KEY_LOCATION_NUMPAD;
break;
@ -1223,6 +1224,8 @@ TISInputSourceWrapper::ComputeGeckoKeyCode(UInt32 aNativeKeyCode,
case kVK_ANSI_KeypadDecimal: return NS_VK_DECIMAL;
case kVK_ANSI_KeypadDivide: return NS_VK_DIVIDE;
case kVK_JIS_KeypadComma: return NS_VK_SEPARATOR;
// IME keys
case kVK_JIS_Eisu: return NS_VK_EISU;
case kVK_JIS_Kana: return NS_VK_KANA;