Re: Re: Alt + CHTN for arrow key movement, XKB?

Ivan Pascal <[email protected]>
Newsgroups gmane.comp.xfree86.internationalization
Message-ID <[email protected]>
  Hi,

> Ok it worked :) this is amazing, I rarely have to move my hands off the
> keyboard.  Navigation everywhere is perfect.

I'm glad to hear it. :)

> BUT I still have a couple of problems.
> 
> - In Gnome (I'm running 2.6 on xfree-4.3.99.902-r2) hitting the "c" key by
> itself is somehow interpreted as ALT+C. So when I'm filling a text box in a
> dialog box, when I hit "c" the dialog box calls up the Cancel button since it
> has "C" underlined. The same for "T" , "H", and "N". If there is a toolbar
> accelerator for them, ther are called just by pressing the key. Not sure if
> there is something I can do here.... could be a gnome issue?

Yes.  It looks like Gnome (GTK) issue.  xev doesn't show something wrong.
I think since the Alt modifier is mentioned in the xkb type (the rule what
level should be chosen on dependence of some modifiers state) GTK mistakely
puts it in the current set of modifiers even when it actually absents.

I think it would be better to ask about this issue in Gnome lists/forums.

> - Holding down the ALT+C or one of the keys does not repeat, if I keep holding
> it , it just produces one event. How do I make it repeat?

It's easy.
I think the problem is that each key has own autorepeat flag which is 'off'
by default but XKB sets them on after keymap loading.
But the specifying actions in the symbols map has a 'side effect'.  XKB
implicitly thinks those key are 'fully described by user' and keeps them
untouched.
You just have to specify explicitly that you want an autorepeat for those keys.
Add 'repeat=yes' to each your ALT_NAV key description, e.g.

key <AD07> {
       type="ALT_NAV", repeat=yes,
                        [           g,  G, PageUp       ],
        actions[Group1]=[NoAction(), NoAction(), RedirectKey(key=<PGUP>,

-- 
 Ivan U. Pascal         |   e-mail: [email protected]
   Administrator of     |   Tomsk State University
     University Network |       Tomsk, Russia
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.