mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
if the widget is not editable, don't silently eat up GDK_Return, GDK_Home
Wed Feb 24 19:35:15 1999 Tim Janik <timj@gtk.org> * gtk/gtktext.c (gtk_text_key_press): if the widget is not editable, don't silently eat up GDK_Return, GDK_Home and GDK_End, return FALSE instead so the user can still hook up key bindings.
This commit is contained in:
parent
c4fe78345e
commit
3ae4d004ca
@ -1,3 +1,9 @@
|
||||
Wed Feb 24 19:35:15 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtktext.c (gtk_text_key_press): if the widget is not editable,
|
||||
don't silently eat up GDK_Return, GDK_Home and GDK_End, return FALSE
|
||||
instead so the user can still hook up key bindings.
|
||||
|
||||
Wed Feb 24 11:19:12 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_size_request): warn about
|
||||
|
@ -1,3 +1,9 @@
|
||||
Wed Feb 24 19:35:15 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtktext.c (gtk_text_key_press): if the widget is not editable,
|
||||
don't silently eat up GDK_Return, GDK_Home and GDK_End, return FALSE
|
||||
instead so the user can still hook up key bindings.
|
||||
|
||||
Wed Feb 24 11:19:12 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_size_request): warn about
|
||||
|
@ -1,3 +1,9 @@
|
||||
Wed Feb 24 19:35:15 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtktext.c (gtk_text_key_press): if the widget is not editable,
|
||||
don't silently eat up GDK_Return, GDK_Home and GDK_End, return FALSE
|
||||
instead so the user can still hook up key bindings.
|
||||
|
||||
Wed Feb 24 11:19:12 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_size_request): warn about
|
||||
|
@ -1,3 +1,9 @@
|
||||
Wed Feb 24 19:35:15 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtktext.c (gtk_text_key_press): if the widget is not editable,
|
||||
don't silently eat up GDK_Return, GDK_Home and GDK_End, return FALSE
|
||||
instead so the user can still hook up key bindings.
|
||||
|
||||
Wed Feb 24 11:19:12 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_size_request): warn about
|
||||
|
@ -1,3 +1,9 @@
|
||||
Wed Feb 24 19:35:15 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtktext.c (gtk_text_key_press): if the widget is not editable,
|
||||
don't silently eat up GDK_Return, GDK_Home and GDK_End, return FALSE
|
||||
instead so the user can still hook up key bindings.
|
||||
|
||||
Wed Feb 24 11:19:12 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_size_request): warn about
|
||||
|
@ -1,3 +1,9 @@
|
||||
Wed Feb 24 19:35:15 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtktext.c (gtk_text_key_press): if the widget is not editable,
|
||||
don't silently eat up GDK_Return, GDK_Home and GDK_End, return FALSE
|
||||
instead so the user can still hook up key bindings.
|
||||
|
||||
Wed Feb 24 11:19:12 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_size_request): warn about
|
||||
|
@ -1,3 +1,9 @@
|
||||
Wed Feb 24 19:35:15 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtktext.c (gtk_text_key_press): if the widget is not editable,
|
||||
don't silently eat up GDK_Return, GDK_Home and GDK_End, return FALSE
|
||||
instead so the user can still hook up key bindings.
|
||||
|
||||
Wed Feb 24 11:19:12 1999 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_size_request): warn about
|
||||
|
@ -2002,10 +2002,14 @@ gtk_text_key_press (GtkWidget *widget,
|
||||
case GDK_Home:
|
||||
if (event->state & GDK_CONTROL_MASK)
|
||||
scroll_int (text, -text->vadj->value);
|
||||
else
|
||||
return_val = FALSE;
|
||||
break;
|
||||
case GDK_End:
|
||||
if (event->state & GDK_CONTROL_MASK)
|
||||
scroll_int (text, +text->vadj->upper);
|
||||
else
|
||||
return_val = FALSE;
|
||||
break;
|
||||
case GDK_Page_Up: scroll_int (text, -text->vadj->page_increment); break;
|
||||
case GDK_Page_Down: scroll_int (text, +text->vadj->page_increment); break;
|
||||
@ -2014,6 +2018,8 @@ gtk_text_key_press (GtkWidget *widget,
|
||||
case GDK_Return:
|
||||
if (event->state & GDK_CONTROL_MASK)
|
||||
gtk_signal_emit_by_name (GTK_OBJECT (text), "activate");
|
||||
else
|
||||
return_val = FALSE;
|
||||
break;
|
||||
default:
|
||||
return_val = FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user