Yahoo! Models test pased ok!
[xorg/xkeyboard-config] / symbols / macintosh_vndr / apple
1 //
2 // Keyboard modification for Apple keyboards
3 //
4 // $XFree86: xc/programs/xkbcomp/symbols/apple,v 1.2 2003/10/24 20:38:20 tsi Exp $
5
6 partial default modifier_keys
7 xkb_symbols "extended" {
8
9     key <KPEQ> { [ KP_Equal ] }; 
10
11 // The key in the PC's Insert position is sometimes engraved Help (at least
12 // in Switzerland and Great Britain), with Insert sometimes above. But in the
13 // US and Canada, it remains Insert. So this should probably be an XkbOption,
14 // but I have to do more research.
15 // Perhaps Help should be the primary symbol with Insert in the 1st shift-level
16 //    key  <INS> { [ Help, Insert ] };
17 // The keys next to F12, labeled F13, F14, & F15 generate codes that XFree86
18 // claims not to generate. I think they should be equivalent to the PC keys
19 // Print Screen / SysRq, Scroll Lock, and Pause. Linux kernel bug?
20 //    key <PRSC> { [ F13 ] }; // should be keycode 93 or
21 //    key <FK13> { [ F13 ] }; // should be keycode 118
22 //    key <SCLK> { [ F14 ] }; // should be keycode 123 or
23 //    key <FK14> { [ F14 ] }; // should be keycode 119
24 //    key <PAUS> { [ F15 ] }; // should be keycode 127 or
25 //    key <FK15> { [ F15 ] }; // should be keycode 120
26 };
27
28 partial modifier_keys
29 xkb_symbols "laptop" {
30
31     include "macintosh_vndr/apple(extended)"
32
33     // The real numlock key on the iBook (shared with F5) works internally to
34     // the keyboard. It illuminates the Num_Lock led and locks the fn-key to
35     // type only the keypad keys on the letter keys (U=4, I=5, O=6, P=*, etc.).
36     // The key in the Num_lock position is engraved with Clear.
37     override key <NMLK> { [ Clear ] };
38     // The key engraved Delete sends BKSP. To get Delete, use Shift-Delete
39     override key <BKSP> { [ BackSpace, Delete ] };
40     // These keyboards only generate a <RALT> when pressing fn+Alt. This makes
41     // it impossible to get to the third shift level on keys that are on
42     // the fn-keypad, so use the Enter key (right of <SPC>) for Mode_switch,
43     // and use fn+Enter (Apple's code for Menu) for KP_Enter.
44     replace key <KPEN> { [ ISO_Level3_Shift ] };
45     modifier_map Mod2  { ISO_Level3_Shift };    
46     // Linux kernel bug with Menu on macs means this doesn't work yet
47 //    replace key <MENU> { [ KP_Enter ] }; // should be keycode 117
48 };
49
50 partial modifier_keys
51 xkb_symbols "laptop_bad_switch" {
52     include "macintosh_vndr/apple(laptop)"
53
54     // Before XFree86 4.3, most keymaps were configured to generate the 
55     // third-level shift from the second group as opposed to the third-level
56     // of the first group. These keymaps require this mapping to work as
57     // expected.
58     replace key <KPEN> { [ Mode_switch ] };
59     modifier_map Mod2  { Mode_switch }; 
60 };