Closed Bug 603697 Opened 14 years ago Closed 12 years ago

[Cocoa] Kana key and Eisu key don't fire key events

Categories

(Core :: Widget: Cocoa, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla15

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

(Keywords: intl)

JIS keyboard layout for Mac has two special keys such as Kana key and Eisu key. Their keycodes are 104 and 102 but they are not mapped to any Gecko DOM keycodes. So, we need to map them.

Kana is similar to DOM_VK_KANA, however, the key is more important for Mac users. It's usable for turning on Japanese IME. So, if some web sites prevent the default behavior of DOM_VK_KANA at keydown, Mac users may be confused.

And also Eisu key is shared with CapsLock key on Windows. But Mac has CapsLock key too. So, the Eisu key is a Mac specific key.

Therefore, I think that we should define two keycodes for them such as DOM_VK_MAC_KANA and DOM_VK_MAC_EISU.

Windows' virtual keycodes are defined in a range from 0x00 to 0xFF. I think that the new keycodes should be 0x100 and 0x101.

How do you think, Kimura-san and Jim? I think that Microsoft won't use 0x100 and larger for the virtual keycodes because there are some compatibility issue. E.g., GetKeyboardState() API and some applications may use 256 length array for storing all key's information (e.g., isKeyPressed[256]).

Note that both Safari and Google Chrome don't fire any key events by them.

FYI:

I cannot find any Simplified Chinese keyboard layout for Mac.

I found Korean keyboard layout and Traditional Chinese keyboard layout for Mac, but they don't have special keys:

http://storeimages.apple.com/5004/as-images.apple.com/is/image/AppleInc/MB110KH?wid=1200&hei=1200&fmt=jpeg&qlt=95&op_sharpen=0&resMode=bicub&op_usm=0.5,0.5,0,0&iccEmbed=0&layer=comp

http://storeimages.apple.com/5004/as-images.apple.com/is/image/AppleInc/MB110TA?wid=1200&hei=1200&fmt=jpeg&qlt=95&op_sharpen=0&resMode=bicub&op_usm=0.5,0.5,0,0&iccEmbed=0&layer=comp
And when I connect a JIS keyboard for Windows to Mac, the Kana key, Mu-henkan key (positioned at Eisu key on Mac), Henkan key (positioned at Kana key on Mac) work as 'A' key. So, we don't need to worry about the compatibility between Mac JIS keyboard's Kana key and Windows JIS keyboard's one.
This was fixed by bug 677252 already.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Depends on: 677252
Resolution: --- → FIXED
Target Milestone: --- → mozilla15
You need to log in before you can comment on or make changes to this bug.