Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!caen!uwm.edu!linac!att!ucbvax!bloom-beacon!dont-send-mail-to-path-lines From: gildea@expo.lcs.mit.EDU (Stephen Gildea) Newsgroups: comp.windows.x Subject: Re: Shift-Key + Funktion-Key under xterm Message-ID: <9103202309.AA29649@alex.lcs.mit.edu> Date: 20 Mar 91 23:09:37 GMT References: <17@kivax.UUCP> Sender: daemon@athena.mit.edu (Mr Background) Organization: X Consortium, MIT Laboratory for Computer Science Lines: 28 Is it possible to assign a different key-code to Shift_L Cursor_Right. (Background : we have an application program, which uses the keys as followed: Cursor-Right: 1 character right Shift_L Cursor_Right: go to end of line ) You don't want to do this with key-codes and xmodmap, as (I'm guessing) you are trying. Instead use a translation table for your application. The translation table syntax is rich and allows you to specify different actions depending on the state of modifier keys (such as Shift). If your application runs under xterm, write a table for xterm that translates key combinations into the character sequences your program needs to see by using xterm's "string" action. For example: myapp*Translations: #override\ Right: forward-char() \n\ Right: end-of-line() \n < Stephen MIT X Consortium