Path: utzoo!attcan!uunet!husc6!bloom-beacon!ATHENA.MIT.EDU!swick From: swick@ATHENA.MIT.EDU (Ralph R. Swick) Newsgroups: comp.windows.x Subject: Re: Keysyms and function keys Message-ID: <8812201926.AA16094@LYRE.MIT.EDU> Date: 20 Dec 88 19:25:56 GMT References: <167@polygen.UUCP> Sender: daemon@bloom-beacon.MIT.EDU Organization: DEC/MIT Project Athena Lines: 19 > Does anyone know how to map multiple key combinations to a single key event > or from something that XLookupString returns via a keysym? I'm not sure I understand the last part of this question. There is nothing in Xlib that merges multiple events together. > For example, we want to get back XK_Insert from something like ctrl-A. No, you probably don't. What you probably want is for your application to execute the "insert" action upon receiving a key event (or a sequence of key events) matching one of a list of events, where the list of events includes "any key event with a keycode corresponding to XK_Insert" and "any key event with the control modifier set and a keycode corresponding to XK_A". The Translation Management facility of the Xt Intrinsics are designed to handle exactly this; see 'X Toolkit Intrinsics - C Language Interface' chapter 10 and appendix B. You don't want to use XChangeKeyboardMapping unless you actually remove a keycap from your keyboard and replace it with a different one.