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