Re: intercepting accelerator keypresses



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.

	Regards,

		Michael.

-- 
 mmeeks gnu org  <><, Pseudo Engineer, itinerant idiot




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]