home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / x / 20748 < prev    next >
Encoding:
Internet Message Format  |  1993-01-05  |  4.5 KB

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