[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes:

> Rick Janda <[EMAIL PROTECTED]> writes:
> 
> | On Keyboard with 104 or 105 Caps you can use the Windows-Key to
> | separate Meta from Alt. I know many people who use Alt for the whole
> | windowmanager stuff and private shortcuts and Meta for the "normal"
> | programs to do not get a conflict. On XFree86 configuration for
> | 104/105 keys PC-keyboards, Meta get mod 4 and Alt get mod 1.
> 
> And in Emacs Meta-x will give "M-x" in the minibuffer?
yes, it does (since Version 19).
> 
> LyX currently uses Mod-1.
> Other uses of modifiers must give a keysym lyx can react upon.
> 
> If I understand how other programms handeled this I am sure we could
> find a solution.
> 
> But it does not seem correct to look at keysym, imho we must look at
> modifier number. (I should be allowed to have my F1 key as mod-1 if I
> want that and F2 as mod-4, how to handle Alt/Meta then?)
Then you must bind Meta_L or Meta_R to the keycode auf F1 and Alt_L or
 Alt_R to the keycode of F2.

This is part of the xkeycaps manpage:

"                The  remaining modifier bits (Mod1 through Mod5)
                 have semantics which are  defined  by  the  keys
                 with which they are associated.
...

                 That  is,  the Control modifier means Control if
                 it is attached to Control_L or Control_R, and is
                 illegal elsewhere.

                 But  Mod1 means Meta if it is attached to Meta_L
                 or Meta_R; but it would  mean  Alt  if  it  were
                 attached  to  Alt_L  or  Alt_R;  or  Hyper  with
                 Hyper_L or Hyper_R; and so on.  (It  could  not,
                 however,  be  attached  to  Control_L, since the
                 Control modifier has already  spoken  for  those
                 keysyms.) 
...
           A client needing to use an extra modifier,  for  exam­
           ple Meta,  should:

             Scan  the existing modifier mappings.  If it finds a
             modifier  that  contains  a  keycode  whose  set  of
             keysyms  includes  XK_Meta_L or XK_Meta_R, it should
             use that modifier bit.

             If there  is  no  existing  modifier  controlled  by
             XK_Meta_L  or  XK_Meta_R, it should select an unused
             modifier bit (one with  an  empty  controlling  set)
             and:

               If there is a keycode with XL_Meta_L in its set of
               keysyms, add that keycode to the set for the  cho­
               sen modifier, then

               if there is a keycode with XL_Meta_R in its set of
               keysyms, add that keycode to the set for the  cho­
               sen modifier, then

               if  the  controlling set is still empty,  interact
               with the user to select one or  more  keys  to  be
               Meta.

             If  there  are no unused modifier bits, ask the user
             to take corrective action.


"
If you need more explanation, please read the xkeycap manpage, it
explain the internals of keyboard settings very well, I think.
> 
>         Lgb


Rick Janda

Reply via email to