Hi, I'm trying to figure out how to rebind key-chords (combinations of multiple keys, like Control+M) under X. My motivation is that these chords interfere with keyboard bindings in emacs. For example, I cannot bind anything containing Control+M: as far as emacs can see it is the same key as 'RET' (according to C-h k C-m). Xterm also sees is it as RET, so it must be something global.
I am running Xorg over FreeBSD 7.1 release (x86 32bit).
Here's what I've tried and failed with:
* I modified key mappings with kbdcontrol(1). However, as far as I see this only affects virtual consoles, and makes no difference when X is running.
* I tried xmodmap(1), which does affect key bindings in X. But the man page shows no indication that it can affect multi-key combinations (chords), unlike kbdcontrol(1).
* I ran xev(1), to see what things look like to Xorg. It shows key chords as multiple key events: I do not know where on my system they are being translated (e.g., where Control+M maps to RET).
Any tips?