Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!think.com!snorkelwacker.mit.edu!bloom-beacon!dont-send-mail-to-path-lines From: mouse@lightning.mcrcim.mcgill.EDU (der Mouse) Newsgroups: comp.windows.x Subject: Re: Shift-Key + Funktion-Key under xterm Message-ID: <9103220638.AA05941@lightning.McRCIM.McGill.EDU> Date: 22 Mar 91 06:38:22 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 28 > I have the following problem under xterm. > The function keys (F1, F2,...) or f.e. the cursor keys have the same > key-codes as these keys in combination with Shift_L. > fe. Cursor-Right Shift_L Cursor-Right > Is it possible to assign a different key-code to Shift_L > Cursor_Right. (Questions normally end with `?' rather than `.'....) No; it doesn't make sense. KeyCodes identify the particular key on the keyboard which was pressed or released, and that key is the cursor-right key in both cases. The way to tell that the shift key is down is to look at the modifier bits in the event. Since you say you're using xterm, you can probably do what you want with the translations mechanism. I am not sure how to specify shifted cursor-right, but here's the example from the FAQ to give some idea what it's all about: xterm*VT100.Translations: #override \ F1: string("setenv DISPLAY unix:0") der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu