mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Produce C-m, not C-j for return. Handle Escape.
Fri Oct 18 16:47:02 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkevents-x11.c (translate_key_event): Produce C-m, not C-j for return. Handle Escape.
This commit is contained in:
parent
18518c091d
commit
5c91c3a08a
@ -1,3 +1,8 @@
|
||||
Fri Oct 18 16:47:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/gdkevents-x11.c (translate_key_event): Produce
|
||||
C-m, not C-j for return. Handle Escape.
|
||||
|
||||
2002-10-22 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkstatusbar.c (gtk_statusbar_get_type):
|
||||
|
@ -1,3 +1,8 @@
|
||||
Fri Oct 18 16:47:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/gdkevents-x11.c (translate_key_event): Produce
|
||||
C-m, not C-j for return. Handle Escape.
|
||||
|
||||
2002-10-22 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkstatusbar.c (gtk_statusbar_get_type):
|
||||
|
@ -1,3 +1,8 @@
|
||||
Fri Oct 18 16:47:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/gdkevents-x11.c (translate_key_event): Produce
|
||||
C-m, not C-j for return. Handle Escape.
|
||||
|
||||
2002-10-22 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkstatusbar.c (gtk_statusbar_get_type):
|
||||
|
@ -1,3 +1,8 @@
|
||||
Fri Oct 18 16:47:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/gdkevents-x11.c (translate_key_event): Produce
|
||||
C-m, not C-j for return. Handle Escape.
|
||||
|
||||
2002-10-22 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkstatusbar.c (gtk_statusbar_get_type):
|
||||
|
@ -1,3 +1,8 @@
|
||||
Fri Oct 18 16:47:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/gdkevents-x11.c (translate_key_event): Produce
|
||||
C-m, not C-j for return. Handle Escape.
|
||||
|
||||
2002-10-22 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkstatusbar.c (gtk_statusbar_get_type):
|
||||
|
@ -1,3 +1,8 @@
|
||||
Fri Oct 18 16:47:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/gdkevents-x11.c (translate_key_event): Produce
|
||||
C-m, not C-j for return. Handle Escape.
|
||||
|
||||
2002-10-22 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkstatusbar.c (gtk_statusbar_get_type):
|
||||
|
@ -576,11 +576,16 @@ translate_key_event (GdkDisplay *display,
|
||||
if (event->key.string)
|
||||
event->key.length = bytes_written;
|
||||
}
|
||||
else if (event->key.keyval == GDK_Escape)
|
||||
{
|
||||
event->key.length = 1;
|
||||
event->key.string = g_strdup ("\033");
|
||||
}
|
||||
else if (event->key.keyval == GDK_Return ||
|
||||
event->key.keyval == GDK_KP_Enter)
|
||||
{
|
||||
event->key.length = 1;
|
||||
event->key.string = g_strdup ("\n");
|
||||
event->key.string = g_strdup ("\r");
|
||||
}
|
||||
|
||||
if (!event->key.string)
|
||||
|
Loading…
Reference in New Issue
Block a user