GNOME Bugzilla – Bug 72337
GtkText actives on control-space ?
Last modified: 2004-12-22 21:47:04 UTC
I've connected a GtkText instance's 'activate' signal to a callback function: gtk_signal_connect (GTK_OBJECT(body), "activate", GTK_SIGNAL_FUNC (body_activate_cb), mw); According to the documentation, this should only get called on Control-Return. However, the function is also called when a user hits Control-Space. If this is not a bug, is there any way of controlling which keys trigger the 'activate' signal ?
What's happening is that Control-<Space> is not being handled by the text widget so it gets propagated to toplevel, where it (and Space unmodified) is a binding to activate the default widget. You can prevent this by gtk_signak_connect_after() to "key_press_event" and returning TRUE for Control-Space. (Won't happen in GTK+-1.3.x/GTK+-2.0 where the keybinding system is very different, and GtkText has been replaced with GtkTextView)