6897086 Hangul and Hanja keys on Korean PC 105 keyboard are not recognized
authorJay Cotton <Jay.Cotton@Sun.COM>
Tue, 17 Nov 2009 10:11:34 -0800
changeset 831 d0181e5c3d32
parent 830 186f3c438b46
child 832 b63fa635c78a
6897086 Hangul and Hanja keys on Korean PC 105 keyboard are not recognized
open-src/driver/xf86-input-keyboard/6897086.patch
open-src/driver/xf86-input-keyboard/Makefile
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/open-src/driver/xf86-input-keyboard/6897086.patch	Tue Nov 17 10:11:34 2009 -0800
@@ -0,0 +1,59 @@
+# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
+# Use is subject to license terms.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, and/or sell copies of the Software, and to permit persons
+# to whom the Software is furnished to do so, provided that the above
+# copyright notice(s) and this permission notice appear in all copies of
+# the Software and that both the above copyright notice(s) and this
+# permission notice appear in supporting documentation.
+# 
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
+# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
+# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+# 
+# Except as contained in this notice, the name of a copyright holder
+# shall not be used in advertising or otherwise to promote the sale, use
+# or other dealings in this Software without prior written authorization
+# of the copyright holder.
+
+--- src/sun_kbdMap.c.orig	Mon Nov 16 15:42:20 2009
++++ src/sun_kbdMap.c	Mon Nov 16 15:38:59 2009
+@@ -40,6 +40,17 @@
+ #define KEY_Kanji	0x82
+ #define KEY_Execute	0x83
+ 
++/* 
++ * Additional Korean 106 Keyboard Keys not defined in atKeynames.h
++ * These are exactly same USB usage id with Kana(0x90) and Eisu(0x91) keys 
++ * in Mac Japanese keyboard. From /usr/X11/lib/X11/xkb/keycodes/xfree86, these
++ * are 209 and 210. So these should be 0xc9(209-8=201) and 0xca(210-8=202).
++ *   <EISU> =   210;          // Alphanumeric mode on macintosh
++ *   <KANA> =   209;          // Kana mode on macintosh
++ */
++#define KEY_Hangul            0xC9    /* Also Kana in Mac Japanaese kbd */
++#define KEY_Hangul_Hanja      0xCA    /* Also Eisu in Mac Japanaese kbd */
++
+ /* Override atKeynames.h values with unique keycodes, so we can distinguish
+    KEY_F15 from KEY_HKTG & KEY_KP_DEC from KEY_BSlash2 */
+ #undef KEY_HKTG
+@@ -475,8 +486,8 @@
+ 	/* 141 */ KEY_NOTUSED,
+ 	/* 142 */ KEY_NOTUSED,
+ 	/* 143 */ KEY_NOTUSED,
+-	/* 144 */ KEY_NOTUSED,
+-	/* 145 */ KEY_NOTUSED,
++	/* 144 */ KEY_Hangul,		/* Korean 106 Kbd: Hangul */
++	/* 145 */ KEY_Hangul_Hanja,	/* Korean 106 Kbd: Hanja */
+ 	/* 146 */ KEY_NOTUSED,
+ 	/* 147 */ KEY_NOTUSED,
+ 	/* 148 */ KEY_NOTUSED,
--- a/open-src/driver/xf86-input-keyboard/Makefile	Fri Nov 13 13:30:43 2009 -0800
+++ b/open-src/driver/xf86-input-keyboard/Makefile	Tue Nov 17 10:11:34 2009 -0800
@@ -30,7 +30,7 @@
 # or other dealings in this Software without prior written authorization
 # of the copyright holder.
 #
-# ident	"@(#)Makefile	1.12	09/10/19 SMI"
+# ident	"@(#)Makefile	1.13	09/11/16 SMI"
 #
 
 # Package name used in tarballs
@@ -45,7 +45,8 @@
 	hal-hotplug.patch,-p1 \
 	sun-keymappings.patch,-p1 \
 	sun-kbd-vt.patch \
-	6886424.patch
+	6886424.patch \
+	6897086.patch
 
 # Man pages to apply Sun footer to & attributes to list
 SUNTOUCHED_MANPAGES=man/*.man