Mercurial > emacs
comparison src/macterm.c @ 60611:4536f307a219
(keycode_to_xkeysym_table): Change mapping so that it coincide with
that in Apple X11 except `clear', `enter' on laptops, and fn + `enter'
on laptops.
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
---|---|
date | Tue, 15 Mar 2005 07:47:25 +0000 |
parents | de784812b4d4 |
children | 5a3fa411c713 48ba3f89c89f |
comparison
equal
deleted
inserted
replaced
60610:2e557b2af3db | 60611:4536f307a219 |
---|---|
8449 return 0; | 8449 return 0; |
8450 } | 8450 } |
8451 #endif | 8451 #endif |
8452 | 8452 |
8453 /* Table for translating Mac keycode to X keysym values. Contributed | 8453 /* Table for translating Mac keycode to X keysym values. Contributed |
8454 by Sudhir Shenoy. */ | 8454 by Sudhir Shenoy. |
8455 Mapping for special keys is now identical to that in Apple X11 | |
8456 except `clear' (-> <clear>) on the KeyPad, `enter' (-> <kp-enter>) | |
8457 on the right of the Cmd key on laptops, and fn + `enter' (-> | |
8458 <linefeed>). */ | |
8455 static unsigned char keycode_to_xkeysym_table[] = { | 8459 static unsigned char keycode_to_xkeysym_table[] = { |
8456 /*0x00*/ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | 8460 /*0x00*/ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
8457 /*0x10*/ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | 8461 /*0x10*/ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
8458 /*0x20*/ 0, 0, 0, 0, 0x0d /*return*/, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | 8462 /*0x20*/ 0, 0, 0, 0, 0x0d /*return*/, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
8459 | 8463 |
8460 /*0x30*/ 0x09 /*tab*/, 0 /*0x0020 space*/, 0, 0x08 /*backspace*/, | 8464 /*0x30*/ 0x09 /*tab*/, 0 /*0x0020 space*/, 0, 0x08 /*backspace*/, |
8461 /*0x34*/ 0, 0x1b /*escape*/, 0, 0, | 8465 /*0x34*/ 0x8d /*enter on laptops*/, 0x1b /*escape*/, 0, 0, |
8462 /*0x38*/ 0, 0, 0, 0, | 8466 /*0x38*/ 0, 0, 0, 0, |
8463 /*0x3C*/ 0, 0, 0, 0, | 8467 /*0x3C*/ 0, 0, 0, 0, |
8464 | 8468 |
8465 /*0x40*/ 0, 0xae /*kp-.*/, 0, 0xaa /*kp-**/, | 8469 /*0x40*/ 0, 0xae /*kp-.*/, 0, 0xaa /*kp-**/, |
8466 /*0x44*/ 0, 0xab /*kp-+*/, 0, 0x7f /*kp-clear*/, | 8470 /*0x44*/ 0, 0xab /*kp-+*/, 0, 0x0b /*clear*/, |
8467 /*0x48*/ 0, 0, 0, 0xaf /*kp-/*/, | 8471 /*0x48*/ 0, 0, 0, 0xaf /*kp-/*/, |
8468 /*0x4C*/ 0x8d /*kp-enter*/, 0, 0xad /*kp--*/, 0, | 8472 /*0x4C*/ 0x8d /*kp-enter*/, 0, 0xad /*kp--*/, 0, |
8469 | 8473 |
8470 /*0x50*/ 0, 0xbd /*kp-=*/, 0xb0 /*kp-0*/, 0xb1 /*kp-1*/, | 8474 /*0x50*/ 0, 0xbd /*kp-=*/, 0xb0 /*kp-0*/, 0xb1 /*kp-1*/, |
8471 /*0x54*/ 0xb2 /*kp-2*/, 0xb3 /*kp-3*/, 0xb4 /*kp-4*/, 0xb5 /*kp-5*/, | 8475 /*0x54*/ 0xb2 /*kp-2*/, 0xb3 /*kp-3*/, 0xb4 /*kp-4*/, 0xb5 /*kp-5*/, |
8473 /*0x5C*/ 0xb9 /*kp-9*/, 0, 0, 0, | 8477 /*0x5C*/ 0xb9 /*kp-9*/, 0, 0, 0, |
8474 | 8478 |
8475 /*0x60*/ 0xc2 /*f5*/, 0xc3 /*f6*/, 0xc4 /*f7*/, 0xc0 /*f3*/, | 8479 /*0x60*/ 0xc2 /*f5*/, 0xc3 /*f6*/, 0xc4 /*f7*/, 0xc0 /*f3*/, |
8476 /*0x64*/ 0xc5 /*f8*/, 0xc6 /*f9*/, 0, 0xc8 /*f11*/, | 8480 /*0x64*/ 0xc5 /*f8*/, 0xc6 /*f9*/, 0, 0xc8 /*f11*/, |
8477 /*0x68*/ 0, 0xca /*f13*/, 0, 0xcb /*f14*/, | 8481 /*0x68*/ 0, 0xca /*f13*/, 0, 0xcb /*f14*/, |
8478 /*0x6C*/ 0, 0xc7 /*f10*/, 0, 0xc9 /*f12*/, | 8482 /*0x6C*/ 0, 0xc7 /*f10*/, 0x0a /*fn+enter on laptops*/, 0xc9 /*f12*/, |
8479 | 8483 |
8480 /*0x70*/ 0, 0xcc /*f15*/, 0x9e /*insert (or 0x6a==help)*/, 0x95 /*home*/, | 8484 /*0x70*/ 0, 0xcc /*f15*/, 0x6a /*help*/, 0x50 /*home*/, |
8481 /*0x74*/ 0x9a /*pgup*/, 0x9f /*delete*/, 0xc1 /*f4*/, 0x9c /*end*/, | 8485 /*0x74*/ 0x55 /*pgup*/, 0xff /*delete*/, 0xc1 /*f4*/, 0x57 /*end*/, |
8482 /*0x78*/ 0xbf /*f2*/, 0x9b /*pgdown*/, 0xbe /*f1*/, 0x51 /*left*/, | 8486 /*0x78*/ 0xbf /*f2*/, 0x56 /*pgdown*/, 0xbe /*f1*/, 0x51 /*left*/, |
8483 /*0x7C*/ 0x53 /*right*/, 0x54 /*down*/, 0x52 /*up*/, 0 | 8487 /*0x7C*/ 0x53 /*right*/, 0x54 /*down*/, 0x52 /*up*/, 0 |
8484 }; | 8488 }; |
8485 | 8489 |
8486 static int | 8490 static int |
8487 keycode_to_xkeysym (int keyCode, int *xKeySym) | 8491 keycode_to_xkeysym (int keyCode, int *xKeySym) |