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:
Owen Taylor 2002-10-22 19:04:51 +00:00 committed by Owen Taylor
parent 18518c091d
commit 5c91c3a08a
7 changed files with 36 additions and 1 deletions

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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)