peter@polygen.uucp (Peter Ent) (12/21/88)
Does anyone know how to map multiple key combinations to a single key event or from something that XLookupString returns via a keysym? For example, we want to get back XK_Insert from something like ctrl-A. We are not currently using any toolkits and have tried to find where in the Athena widget set this type of translation is done. The O'Reilly books are of no help on this. We have also tried using XChangeKeyboardMapping but the page in the book is VERY unclear. We tried to put 2 keysyms per keycode to map Ctrl-A to XK_Insert as follows: KeySym keysyms[] = { ControlMapIndex, XK_Insert }; : XChangeKeyboardMapping( display, 84, 2, keysyms, 1 ); but all that did was make the 'a' key turn into Ctrl-B. If the explanation is lengthy, is there a better source than the O'Reilly books. --peter ent Polygen Corp. (617) 890-288