- case XK_Meta_R: key = K_ALT; break;
-
- case XK_Caps_Lock: key = K_CAPSLOCK; break;
- case XK_KP_Begin: key = KP_5; break;
-
- case XK_Insert: key = K_INS; break;
- case XK_KP_Insert: key = KP_INS; break;
-
- case XK_KP_Multiply: key = KP_MULTIPLY; break;
- case XK_KP_Add: key = KP_PLUS; break;
- case XK_KP_Subtract: key = KP_MINUS; break;
- case XK_KP_Divide: key = KP_DIVIDE; break;
-
- /* For Sun keyboards */
- case XK_F27: key = K_HOME; break;
- case XK_F29: key = K_PGUP; break;
- case XK_F33: key = K_END; break;
- case XK_F35: key = K_PGDN; break;
+ case XK_Meta_R: key = K_ALT; break;
+
+ case XK_KP_Begin: key = K_KP_5; break;
+
+ case XK_Insert:key = K_INS; break;
+ case XK_KP_Insert: key = K_KP_INS; break;
+
+ case XK_KP_Multiply: key = '*'; break;
+ case XK_KP_Add: key = K_KP_PLUS; break;
+ case XK_KP_Subtract: key = K_KP_MINUS; break;
+ case XK_KP_Divide: key = K_KP_SLASH; break;
+
+#if 0
+ case 0x021: key = '1';break;/* [!] */
+ case 0x040: key = '2';break;/* [@] */
+ case 0x023: key = '3';break;/* [#] */
+ case 0x024: key = '4';break;/* [$] */
+ case 0x025: key = '5';break;/* [%] */
+ case 0x05e: key = '6';break;/* [^] */
+ case 0x026: key = '7';break;/* [&] */
+ case 0x02a: key = '8';break;/* [*] */
+ case 0x028: key = '9';;break;/* [(] */
+ case 0x029: key = '0';break;/* [)] */
+ case 0x05f: key = '-';break;/* [_] */
+ case 0x02b: key = '=';break;/* [+] */
+ case 0x07c: key = '\'';break;/* [|] */
+ case 0x07d: key = '[';break;/* [}] */
+ case 0x07b: key = ']';break;/* [{] */
+ case 0x022: key = '\'';break;/* ["] */
+ case 0x03a: key = ';';break;/* [:] */
+ case 0x03f: key = '/';break;/* [?] */
+ case 0x03e: key = '.';break;/* [>] */
+ case 0x03c: key = ',';break;/* [<] */
+#endif