Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!mcsun!cernvax!chx400!chx400!sicsun!sic!brossard From: brossard@sic.epfl.ch (Alain Brossard EPFL-SIC/SII) Newsgroups: comp.windows.x Subject: bugs with keybindings Message-ID: <1201@sicsun.epfl.ch> Date: 20 Mar 91 19:07:40 GMT Sender: news@sicsun.epfl.ch Lines: 62 Bg: X.V11R4, patch level 18, patched to handle Compose characters and "dead" keys. Compiled on a sun4, type 3 keyboard, os 4.1. Bug #1: I'm trying to define keys to have more than 2 symbols each with xmodmap, for ex: keysym semicolon = eacute colon semicolon Eacute In order to have a ;, I have to have a "Mode_switch" key, no problem I defined Meta_L to be it: clear mod1 keysym Meta_L = Mode_switch clear mod3 add mod3 = Mode_switch I used mod3 rather than mod1, because for some programs like xterm the mod1 (Meta) is special: it turns on the 8th bit, which is not what I want. In order for the Mode_switch key to work, it has to be a modifier. Fine so far: it works. Now I want to have the Meta_R key to have the same effect so: keysym Meta_R = Mode_switch Both keys should be generating the same things, but they don't! the left key is considered to be a modifier, but not Meta_R. No amount of clear mod3 and add mod3 = Mode_switch seem to work. In my humble opinion, this should work: both keys generate the same keysym which is modifier, but in one case it is and in another case it isn't. Any solutions? A few hours later, a new twist: keysym Mode_switch = Meta_R clear mod3 add mod3 = Meta_R Mode_switch and now they both work as a mode_switch key. BUG #2 I tried to define the "Linefeed" key to be a caps lock: clear lock add lock = Linefeed Linefeed has no impact as a cap lock key BUT it does seem to affect the binding of the keys of tvtwm! Meaning press linefeed once (you get a linefeed) and the binding of the keys of tvtwm no longer work: different modifiers. No impact on character generation. Press linefeed again (no linefeed generated) and the key bindings of tvtwm now work (still no impact on character generation)! This is 100% reproducible. Alain Brossard