[vbox-dev] Patch for Japanese Mac Keyboard and Korean keyboard

Park, Chang-Beom trip2me at gmail.com
Sun Jun 14 13:21:03 GMT 2009


In latest Japanese Mac keyboard has some special keys for changing input
method.
There are Eisu key and Kana key.
In Korea, there is a Korean keyboard which is same layout with US QWERTY.
But it has additional two keys which are called Han-young and Hanja.
These keys are
used for changing Korean/English and translating Korean into related
Chinese character.

The point is Japanese one and Korean's one make same ADB keycode on OS X.
Kana and Han-young makes 0x68. Eisu and Hanja makes 0x66.

I don't know why Apple did that thinng happen.
But Apple doesn't support Korean Input method keys.
Thanks to Apple, Korean input method keys can be activated on OS X.

I saw a thread about patching for Japanese keyboard.
http://article.gmane.org/gmane.comp.emulators.virtualbox.devel/175


But latest release of VirtualBox doesn't make any PS/2 scancode for
Kana and Eisu.

So I patched the /src/VBox/Frontends/VirtualBox/src/darwin/DarwinKeyboard.cpp

--- DarwinKeyboard.cpp  2009-06-14 20:49:05.000000000 +0900
+++ DarwinKeyboard.new.cpp      2009-06-14 22:16:21.000000000 +0900
@@ -215,9 +215,9 @@
     0x3d,                       /* QZ_F3           0x63 */
     0x42,                       /* QZ_F8           0x64 */
     0x43,                       /* QZ_F9           0x65 */
-    0x29,                       /* Zen/Han (JIS)   0x66 */
+    0x7b,                       /* QZ_EISU (JIS)   0x66 */
     0x57,                       /* QZ_F11          0x67 */
-    0x29,                       /* Zen/Han (JIS)   0x68 */
+    0x70,                       /* QZ_KANA (JIS)   0x68 */
     0x37|K_EX,                  /* QZ_PRINT / F13  0x69 */
     0x63,                       /* QZ_F16          0x6A */
     0x46|K_LOCK,                /* QZ_SCROLLOCK    0x6B */


and did the same patch to  src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp ,
 src/VBox/Frontends/VBoxBFE/SDLConsole.cpp.

Regards,
trip2me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20090614/813b2d9b/attachment.html>


More information about the vbox-dev mailing list