]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
x11: translate enter to new line
authorRay Strode <rstrode@redhat.com>
Fri, 29 Jul 2011 19:16:50 +0000 (15:16 -0400)
committerRay Strode <rstrode@redhat.com>
Fri, 29 Jul 2011 19:16:50 +0000 (15:16 -0400)
commit 4081bd29fb471a93daba746643419d858f06bdfe changed
our keyboard handling code to treat newline instead of
carriage return as the enter key.

That commit fixed up the tty settings to work under these
new assumptions.  It failed to update the X11 code, though.

This commit fixes the X11 renderer plugin so it works in
the same way.

src/plugins/renderers/x11/plugin.c

index 0bf8ab285ef8bc3b343d9b244064e03147b00d5d..e68d6af75cef3a7c426df55e298153b0a15e1e6c 100644 (file)
@@ -451,7 +451,7 @@ on_key_event (GtkWidget   *widget,
 
   if (event->keyval == GDK_Return)          /* Enter */
     {
-      ply_buffer_append_bytes (input_source->key_buffer, "\r", 1);
+      ply_buffer_append_bytes (input_source->key_buffer, "\n", 1);
     }
   else if (event->keyval == GDK_Escape)     /* Esc */
     {