yhsieh@cadence.cadence.com (11/28/90)
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[] = "<Key>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[] = "<Key>Delete: echo_char()";
to ^^^^^^
static char defaultTranslations[] = "<Key>osfDelete: echo_char()";
^^^^^^^^^
then it worked. I checked the file (VirtKeys.c) under lib/Xm, seems to me OSF
people defined osfDelete as <Key>DRemove for DECWindow. So I tried to use
<Key>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
====================================================================