Keyboard Remapping Status
Keyboard Remapping Status
- Subject: Keyboard Remapping Status
- From: Jeremy Huddleston <email@hidden>
- Date: Sat, 24 Nov 2007 03:08:21 -0800
I added some initial support for keyboard remapping to xorg-server-1.2-
apple. You can check it out here:
http://gitweb.freedesktop.org/?p=xorg/xserver.git;a=commitdiff;h=61b6dad5ef0f75051ed67691b041648ec7dcaff7;hp=f6a4c10636268669c889c05bae52a2f8579e7b80
I removed the darwinSwapAltMeta option since this pretty much
supersedes it. I don't have much experience dealing with ObjC or with
reading configuration information from NSDefaults, so if someone else
can pick up where I left off, that'd be great. It looks like ObjC
code needs to be added around line 680 in X11Application.m to read
from defaults and make the appropriate calls to:
DarwinKeyboardKeySymRemapStr(const char *from, const char *to);
DarwinKeyboardModMaskRemapStr(const char *key, const char *mask);
The added functionality allows you to remap any of these keys to be
called one of the others in the list:
Shift_L
Shift_R
Caps_Lock
Control_L
Control_R
Alt_L
Alt_R
Meta_L
Meta_R
Mode_Switch
Multi_Key
Additionally, you can set which modifier key any of these get assigned
to:
shift
lock
control
mod1
mod2
mod3
mod4
mod5
I also enabled DUMP_DARWIN_KEYMAP, so debug output to x11-debug.txt is
spammed with the keymapping on startup.
--Jeremy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden