[comp.windows.x] twm & Sun R-keys

david@ics.uci.edu (David B. Shapiro) (04/19/89)

Is it possible for twm to use different key mappings in different
windows (similar to the way it checks the window name in choosing an
icon)?  Specifically, I would like to have my Sun's R7 through R15 keys
map into a number pad when I'm using xcalc, and remain arrow keys
elsewhere.  Any suggestions?

(The nitty-gritty: TWM Revision 1.2, X11.3, Sun 3/50)
--------

David Shapiro      Support Group, Department of         david@ics.uci.edu
                 Information and Computer Science       ucbvax!ucivax!david
                 University of California, Irvine

jim@EXPO.LCS.MIT.EDU (Jim Fulton) (04/19/89)

> Is it possible for twm to use different key mappings in different
> windows (similar to the way it checks the window name in choosing an
> icon)?  Specifically, I would like to have my Sun's R7 through R15 keys
> map into a number pad when I'm using xcalc, and remain arrow keys
> elsewhere.

Twm shouldn't be involved.  If xcalc used the toolkit (it really ought to),
then you could attach the necessary actions to the appropriate keycodes. 
Ditto on the other application.