Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!crdgw1!uunet!cadence!usenet From: yhsieh@cadence.cadence.com Newsgroups: comp.windows.x.motif Subject: Problem about key symbols under Motif Message-ID: <1990Nov27.182042.1752@cadence.com> Date: 27 Nov 90 18:20:42 GMT Sender: usenet@cadence.com (USENET News) Organization: Cadence Design Systems, Inc. Lines: 44 Hi, I have a question about keysym. What I am using are DECStation 3100 and DECWindow. As I know my keyboard just has Delete key but no BackSpace key, I tried to redefine Delete key to something else instead of delete a character following the cursor. What I did was this : void echo_char(); static XtActionsRec actionsTable[] = { {"echo_char", echo_char}, }; static char defaultTranslations[] = "Delete: echo_char()"; : : XtAppAddActions (app_context, actionsTable, XtNumber(actionsTable)); trans_table = XtParseTranslationTable (defaultTranslations); : : textw = XmCreateTextField ( ....... ) XtOverrideTranslations (textw, trans_table); It never worked, but after I changed static char defaultTranslations[] = "Delete: echo_char()"; to ^^^^^^ static char defaultTranslations[] = "osfDelete: echo_char()"; ^^^^^^^^^ then it worked. I checked the file (VirtKeys.c) under lib/Xm, seems to me OSF people defined osfDelete as DRemove for DECWindow. So I tried to use DRemove in my statement but it still won't work. I am pretty confused by these key symbols. Could anyone tell me what's the difference between "Delete" and "osfDelete" and where I can find the documentation ? Any help is very appreciated. ==================================================================== I Tommy Hsieh I Cadence Design System, Inc. I I (408) 944-7869 I I I I mail address : I I yhsieh@cadence.com I I ...!{versatc,apollo,ucbcad,uunet}!cadence!yhsieh I ====================================================================