Package: gtk
Function gtk:text-view-im-context-filter-keypress
Lambda Listgtk:text-view-im-context-filter-keypress (view event) ArgumentsReturn ValueTrue if the input method handled the key event. Details
Allow the text view input method to internally handle key press and
release events. If this function returns true, then no further processing should be done for this key event. See the gtk:im-context-filter-keypress function. Note that you are expected to call this function from your handler when overriding key event handling. This is needed in the case when you need to insert your own key handling between the input method and the default key event handling of the text view. static gboolean gtk_foo_bar_key_press_event (GtkWidget *widget, GdkEventKey *event) { if ((key->keyval == GDK_KEY_Return || key->keyval == GDK_KEY_KP_Enter)) { if (gtk_text_view_im_context_filter_keypress (GTK_TEXT_VIEW (view), event)) return TRUE; } | See also |
#2024-7-4