mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-07 17:20:07 +00:00
Handle Return and KP_Enter.
Fri Oct 18 16:47:02 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkevents-x11.c (translate_key_event): Handle Return and KP_Enter.
This commit is contained in:
parent
ac98d231f6
commit
a5803ca523
@ -1,3 +1,8 @@
|
|||||||
|
Fri Oct 18 16:47:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gdk/x11/gdkevents-x11.c (translate_key_event): Handle
|
||||||
|
Return and KP_Enter.
|
||||||
|
|
||||||
Fri Oct 18 15:38:50 2002 Owen Taylor <otaylor@redhat.com>
|
Fri Oct 18 15:38:50 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkprogressbar.c (gtk_progress_bar_set_text):
|
* gtk/gtkprogressbar.c (gtk_progress_bar_set_text):
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Fri Oct 18 16:47:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gdk/x11/gdkevents-x11.c (translate_key_event): Handle
|
||||||
|
Return and KP_Enter.
|
||||||
|
|
||||||
Fri Oct 18 15:38:50 2002 Owen Taylor <otaylor@redhat.com>
|
Fri Oct 18 15:38:50 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkprogressbar.c (gtk_progress_bar_set_text):
|
* gtk/gtkprogressbar.c (gtk_progress_bar_set_text):
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Fri Oct 18 16:47:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gdk/x11/gdkevents-x11.c (translate_key_event): Handle
|
||||||
|
Return and KP_Enter.
|
||||||
|
|
||||||
Fri Oct 18 15:38:50 2002 Owen Taylor <otaylor@redhat.com>
|
Fri Oct 18 15:38:50 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkprogressbar.c (gtk_progress_bar_set_text):
|
* gtk/gtkprogressbar.c (gtk_progress_bar_set_text):
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Fri Oct 18 16:47:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gdk/x11/gdkevents-x11.c (translate_key_event): Handle
|
||||||
|
Return and KP_Enter.
|
||||||
|
|
||||||
Fri Oct 18 15:38:50 2002 Owen Taylor <otaylor@redhat.com>
|
Fri Oct 18 15:38:50 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkprogressbar.c (gtk_progress_bar_set_text):
|
* gtk/gtkprogressbar.c (gtk_progress_bar_set_text):
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Fri Oct 18 16:47:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gdk/x11/gdkevents-x11.c (translate_key_event): Handle
|
||||||
|
Return and KP_Enter.
|
||||||
|
|
||||||
Fri Oct 18 15:38:50 2002 Owen Taylor <otaylor@redhat.com>
|
Fri Oct 18 15:38:50 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkprogressbar.c (gtk_progress_bar_set_text):
|
* gtk/gtkprogressbar.c (gtk_progress_bar_set_text):
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Fri Oct 18 16:47:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gdk/x11/gdkevents-x11.c (translate_key_event): Handle
|
||||||
|
Return and KP_Enter.
|
||||||
|
|
||||||
Fri Oct 18 15:38:50 2002 Owen Taylor <otaylor@redhat.com>
|
Fri Oct 18 15:38:50 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkprogressbar.c (gtk_progress_bar_set_text):
|
* gtk/gtkprogressbar.c (gtk_progress_bar_set_text):
|
||||||
|
@ -576,6 +576,12 @@ translate_key_event (GdkDisplay *display,
|
|||||||
if (event->key.string)
|
if (event->key.string)
|
||||||
event->key.length = bytes_written;
|
event->key.length = bytes_written;
|
||||||
}
|
}
|
||||||
|
else if (event->key.keyval == GDK_Return ||
|
||||||
|
event->key.keyval == GDK_KP_Enter)
|
||||||
|
{
|
||||||
|
event->key.length = 1;
|
||||||
|
event->key.string = g_strdup ("\n");
|
||||||
|
}
|
||||||
|
|
||||||
if (!event->key.string)
|
if (!event->key.string)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user