[Gtk-sharp-list] TextView widget ignores important events
Tue, 10 Aug 2004 12:53:08 -0400
On Mon, 2004-09-08 at 22:17 -0600, Draek wrote:
> I would love to have some of you GTK folks help me with a little problem
> I'm having with TextView. It seems I cannot map the KeyPressedEvent but
> I can do KeyReleasedEvent. The Pressed event simply doesnt respond. The
> attached event handler function doesnt get called when you press keys on
> the keyboard.
Your signal handler is connect_after, and textview has already decided
it has handled it properly in the default handler. You have 2 options.
Subclass TextView and override the default handler, or use the
[GLib.ConnectBefore] Signal handler.
> Does anyone know why the TextView would disable the functionality of the
> key press? Is this a bug in GTK#?
Nope. Read the FAQ, particularly entry #3.3
> Any input would be appreciated.
> PS: I checked out MonoDevelop source code, and I could not find anywhere
> that attempts to do this, still havent found a program that does it in
Oh, we do it, trust me. Look at the code in