+ William Mortensen <email@hidden>:
This is hardware-dependent. I believe Apple's desktop USB keyboards
send different keycodes for left and right modifiers. On the other
hand, ADB-based laptop keyboards, as found on all iBooks and
PowerBooks until 2005, always send the keycode for the left
modifier. In 2005 the 15" and 17" PowerBook switched to a USB-based
keyboard while the 12" PB and the iBooks stayed with the ADB
keyboard.
Hmm, on my 12 inch PB I cannot even find any trace of the keyboard in
System Profiler. But from what you say, I guess it must be an ADB
one. System Profiler doesn't seem to mention ADB, but it does list
the USB tree, holding the USB Bluetooth controller and the trackpad
but no keyboard. The boot messages admit that ADB exists, but don't
mention the keyboard either. Obviously there is one; I am typing on
it.
However, on both types of keyboard, holding down the Fn key in
combination with Ctrl or Shift sends the keycodes for right-Ctrl and
right-Shift
Not in xev on my machine: But keep in mind that I am running the
tiger X11 on leopard. Possibly the X server merges those different
keycodes into one. Also, I wonder ... if I press Fn-Ctrl-I, then
presumably the Fn key will modify both the Ctrl and I keys, resulting
in Ctrl_R-KP_5? Some rather entertaining confusion might ensue.