Path: utzoo!utgpu!watmath!watcgl!watnext!jmberkley From: jmberkley@watnext.waterloo.edu (J. Michael Berkley) Newsgroups: comp.windows.x,uw.x-hints Subject: Binding keypad enter to an action (in the toolkit) Message-ID: <8321@watcgl.waterloo.edu> Date: 27 Feb 89 19:10:26 GMT Sender: daemon@watcgl.waterloo.edu Distribution: comp Lines: 14 Using C and the toolkit, how can you add the keypad enter key to the translation table. I can do it as a resource using xrdb, but I can't find a way to do it from a C program. This is what I've tried so far: /* These don't work #define XDEFTRANS "KB_Enter: print-selection()" #define XDEFTRANS "Enter: print-selection()" */ /* This does, but binds S, not which is what I want. */ #define XDEFTRANS "MetaS: print-selection()" XtOverrideTranslations(w,XtParseTranslationTable(XDEFTRANS));