From:	SMTP%"RELAY-INFO-VAX@CRVAX.SRI.COM"  6-JUL-1994 14:17:19.29
To:	EVERHART
CC:	
Subj:	SUMMARY for "Delete" KeySYM Ignored by DECWindows (Calendar,DECterm,etc..)

From: flower@SDVAX2.etdesg.trw.com (Richard E. Flower)
X-Newsgroups: comp.os.vms,comp.windows.x.motif,comp.windows.x
Subject: SUMMARY for "Delete" KeySYM Ignored by DECWindows (Calendar,DECterm,etc..)
Date: 06 Jul 1994 09:56:55 GMT
Organization: TRW Inc., Redondo Beach, Ca. 90278
Lines: 60
Distribution: world
Message-ID: <FLOWER.94Jul6095656@SDVAX2.etdesg.trw.com>
NNTP-Posting-Host: 129.193.75.95
To: Info-VAX@CRVAX.SRI.COM
X-Gateway-Source-Info: USENET


Well, the problem that I was having with the DECwindows Keysym was solved by 
Fred Kleinsorge (kleinsorge@star.enet.dec.com) and was related to what Motif
was doing with Virtual Keybindings.. (Fred was having problems with his NNTP
server and wanted me to post this info!).  For those of you that don't recall
what the problem was, I was unable to use the DELETE key in the Calendar, 
DECterm's Dialog boxes (ie. the Options/Window pulldown), and just about any
other DEC specific program that has string entry boxes within a window while
running on a NON-VMS workstation (ie. a Mac running an X-Server, etc).

Anyway, here is the fix :

If you put the following into your DECW$XDEFAULTS.DAT file (you may not 
currently have one, so just create one)

----------------> CUT HERE >-------------------------------------------------
*defaultVirtualBindings:\
 osfCancel      :               <Key>F11        \n\
 osfLeft        :               <Key>Left       \n\
 osfUp          :               <Key>Up         \n\
 osfRight       :               <Key>Right      \n\
 osfDown        :               <Key>Down       \n\
 osfEndLine     :Alt            <Key>Right      \n\
 osfBeginLine   :Alt            <Key>Left       \n\
 osfPageUp      :               <Key>Prior      \n\
 osfPageDown    :               <Key>Next       \n\
 osfDelete      :Shift          <Key>Delete     \n\
 osfUndo        :Alt            <Key>Delete     \n\
 osfBackSpace   :               <Key>Delete     \n\
 osfAddMode     :Shift          <Key>F8         \n\
 osfHelp        :               <Key>Help       \n\
 osfMenu        :               <Key>F4         \n\
 osfMenuBar     :               <Key>F10        \n\
 osfSelect      :               <Key>Select     \n\
 osfActivate    :               <Key>KP_Enter   \n\
 osfCopy        :Shift          <Key>DRemove    \n\
 osfCut         :               <Key>DRemove    \n\
 osfPaste       :               <Key>Insert
----------------> CUT HERE >-------------------------------------------------

in your DECW$USER_DEFAULTS directory and then use the following two commands to
get the new keybindings merged into your existing X-database (in LOGIN.COM):

$  xrdb :== $decw$utils:xrdb.exe
$  xrdb -nocpp -merge decw$user_defaults:decw$xdefaults.dat

If you get any kind of warning messages from XRDB (like I do since I've got all
kinds of crap in there), then you can go and put the following two lines 
*BEFORE* the xrdb lines above and that will keep things quiet.. :

$  define/user sys$output nla0:
$  define/user sys$error  nla0:

-- Rick
--
+----------------------------------------------+------------------------------+
|I Live in Los Angeles California, home of the | flower@donald.sp.TRW.COM     |
|Earthquakes, Fires, Riots, Gangs, Traffic,    |             or               |
|Smog, Pollution, etc.. I just LOVE LA!!       | flower@sdvax2.sp.TRW.COM     |
+----------------------------------------------+------------------------------+

