home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / 20577 < prev    next >
Encoding:
Internet Message Format  |  1992-12-28  |  3.8 KB

  1. Xref: sparky comp.windows.x:20577 comp.windows.x.motif:8229
  2. Path: sparky!uunet!cs.utexas.edu!torn!nott!uotcsi2!revcan!software.mitel.com!iwona
  3. From: iwona@Software.Mitel.COM (Iwona Hawrylak)
  4. Newsgroups: comp.windows.x,comp.windows.x.motif
  5. Subject: Accelerators, Key Bindings.
  6. Message-ID: <13775@iwona>
  7. Date: 24 Dec 92 18:11:53 GMT
  8. Organization: Mitel. Kanata (Ontario). Canada.
  9. Lines: 81
  10.  
  11. I'm working on 486 running Interactive UNIX, and Metrolink Motif.
  12. The keyboard is the standard PC keyboard. I've  ran the "xev"
  13. program (described in "X Window System User's guide" Volume 3)
  14. and I found out the following:
  15.  
  16.  - the key labeled PgDn (and "3" above) has keycode 89 and
  17.    keysym Next (0xff56)
  18.  - the key labeled PageDown has keycode 134 and
  19.    keysym Next (0xff56) 
  20.  
  21. I want to use those keys as menu button accelerators by specifying
  22. the following modifier-keysym sequence:
  23.   Alt<Key>Next
  24.  
  25. The problem is that this works for key labeled PgDn (keycode 89)
  26. which is mapped to keysym Next, but it does not work for the key
  27. labeled PageDown (keycode 134) which is also mapped to keysym Next.
  28.  
  29. Does anybody have any idea why is it happening this way?
  30. What can I do to be able to use the Alt PageDown (keycode 134)
  31. as an accelerator?
  32.  
  33. ****************************************************************
  34.  
  35. I've searched all the literature I have to solve it. The only
  36. thing that I think might have any influence are the Motif Virtual
  37. binding (osf<keysym>). First of all I didn't find any osf... 
  38. binding for Alt<Key>Next in XKeysymDB (which is by the way in hex 
  39. code which is hard to understand) or in any of the widget's
  40. translations, and I don't have any .motifbind file in my home
  41. directory. But even if it would be somewhere, for example:
  42. osfsomekeysym  : Alt <Key>Next
  43. then I shoudn't be able to redefine it for the PgDn (keycode 89)
  44. key either because it has the same keysym Next as key PageDown
  45. (keycode 134).
  46.  
  47. More questions:
  48. 1. I cannot find the vendor-specific defaults for virtual bindings
  49.    as mentioned in "Motif Programming Manual Vol 6" of O'Reilly &
  50.    Associates, Inc. book page 786. Should I have one? Where would
  51.    it be located.
  52.  
  53. 2. In ...../motif/bindings directory there is a README file. There
  54.    it says that I should copy one of the files containing bindings
  55.    for specific keyboards to my home directory. But the only files
  56.    that are there are sun_mit and sun_news files. There is no bindings
  57.    file for PC keyboard. Do I need it? How do I get it?
  58.    
  59. 3. In "Motif Programmer Reference" in Virtual Bindings man pages
  60.    the format of the specification for mapping osf keysyms is
  61.    described. It is also mentioned that as with event translations,
  62.    more specific event descriptions must precede less specific
  63.    descriptions. For example, an event description for a key with
  64.    a modifier must precede a description for the same key without
  65.    the same modifier. So for example:
  66.  
  67.    osfPageRight  : Ctrl    <Key>Next
  68.    osfPageDown   :         <Key>Next
  69.  
  70.    With this definitions it works the following way:
  71.      - if Ctrl<Key>Next is pressed the action defined for osfPageRight
  72.        is executed.
  73.      - if <Key>Next is pressed by itself or with any other modifier
  74.        the action defined for osfPageDown is executed.
  75.    How can I specify not to bind Alt<Key>Next to any osf keysym (for
  76.    translations one could use "~" symbol in front of the modifier.
  77.    
  78. 4. How to understand the format of ..../motif/lib/X11/XKeysymDB file
  79.    and is it a some kind of default that the X server reads?
  80.  
  81. 5. When I ran "xev" or "xmodmap -pk" programs I can see what are the
  82.    current keycode-keysym bindings. Where are they read from?
  83.  
  84. I would really appreciate some help.
  85. Thanks,
  86. Iwona
  87. -- 
  88. ***********************************************************************
  89. Iwona Hawrylak     Mitel Corp.            iwona@Software.Mitel.COM
  90. (613) 592-2122     350 Legget Drive, Kanata   ...uunet!mitel!spock!iwona
  91. ext. 3043     Ontario, Canada, K2K 1X3
  92.