Re: intercepting accelerator keypresses

Alexander Larsson <[email protected]>
Newsgroups gmane.comp.gnome.components
Message-ID <[email protected]>
On 28 Mar 2003, Michael Meeks wrote:

> Hi Jason,
> 
> On Thu, 2003-03-20 at 19:45, Jason Hildebrand wrote:
> > I'm implementing the NautilusView interface for vim, so that vim can be
> > used to view/edit a file in Nautilus, and have run into a snag wrt
> > keypresses.
> > 
> > Nautilus uses "Escape" as an accelerator for the "View->Stop" menu item.
> > This prevents the use of Esc within the embedded Vim to jump back to
> > command-mode, since Nautilus seems to swallow this keypress (even when
> > the menu item is insensitive).  There are other accelerators which
> > conflict with vim keypresses as well.
> > 
> > Is there a way for the control to get first dibs on handling these
> > keypresses?
> 
> 	AFAIK no - the event comes from X itself, to the toplevel window and
> thus it gets first go at it. Of course - if you have the focus in the
> child window then the same thing applies in reverse - you get the first
> go at it. I'm afraid I don't fully understand the focus handling issues
> with Controls / Window Managers / Sloppy focus etc. ;-) but Federico
> does, so I'd bother him about it if you can find a spare moment from
> him.

The escape accelerator for view->stop has been removed in CVS head. It 
conflicted with several other uses of escape in Nautilus and was only 
introduced (semi-)recently.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   [email protected]    [email protected] 
He's a scrappy devious boxer with a winning smile and a way with the ladies. 
She's a mentally unstable goth doctor from a family of eight older brothers. 
They fight crime!
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.