Setting up an Apple wireless keyboard
Michel Dänzer
michel at tungstengraphics.com
Wed Apr 23 01:25:02 PDT 2008
On Tue, 2008-04-22 at 19:00 +0100, Phil Endecott wrote:
>
> I'm typing this on an Apple wireless keyboard. If you're looking for a
> small keyboard (i.e. to minimise the distance that you have to move
> your arm to reach the mouse), it could be a good choice. But I need to
> remap a few keys to make it usable. Can anyone help? Here's what I
> want to do:
>
> - There's no delete key. I'd like to remap what I think is an eject
> key to delete; it currently reports keycode 204 in xev. This should be
> easy :-)
>
> - There are no page up, page down, home or end keys. I'd like to make
> FN plus cursor keys implement these. This is interesting, as on
> another small keyboard that I have it seemed as if the FN key had a
> hardcoded behaviour implemented within the keyboard itself. This is
> not the case with this keyboard; although xev doesn't report anything
> when I press FN, I do see events in /dev/input/eventN with keycode
> 0x1d0. But there's also the question of whether the keys at the
> bottom-left of the keyboard should be ordered FN then CTRL or CTRL then
> FN; one option is to make them both CTRL, and to make CTRL plus cursor
> return pgup etc. (This breaks any applications that actually use
> ctrl+cursor for something; I've just discovered that it does word
> left/right in this webmail. Hmm.)
At least these cases (if not the rest as well) need to be handled in the
kernel. It might be useful for you to look at the changes in Linux
2.6.25 which added support for the Apple USB aluminum keyboards.
--
Earthling Michel Dänzer | http://tungstengraphics.com
Libre software enthusiast | Debian, X and DRI developer
More information about the xorg
mailing list