[Gtk-sharp-list] Overriding menu item accelerators
Alexandros Frantzis
alfius at freemail.gr
Tue Jul 19 14:24:23 EDT 2005
Hello,
in an application I am developing I have recently added a firefox-like
search bar. The problem is that the menu item accelerators for copy,
paste etc (which are used for the main application widget) consume the
related key presses and they never reach the search text entry (because
the search bar is in the same Gtk.Window).
The solution I have found so far is to put these problematic
accelerators in a seperate AccelGroup and add or remove them
from the main window according to which widget has the focus.
Does someone know of a more elegant way of doing this?
Can I define accelerators that work on a per widget basis?
Thank you,
Alexandros
More information about the Gtk-sharp-list
mailing list