Revert "Bug 676077: Fix handling of Keyboard Input on Windows"
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 17 Jan 2022 03:15:51 +0000 (11:15 +0800)
committerPhilip Zander <philip.zander@gmail.com>
Mon, 17 Jan 2022 10:38:37 +0000 (11:38 +0100)
The actual code that does the IM context code handling on Windows now uses the
native Windows APIs to handle keystrokes, so this patch is no longer needed, as
it was found that it instead caused issues.

Pointed out in issue #2865.

This reverts commit fd6ce9975e4cc9c090d07e7a6b0013d02b49ce26.

gdk/gdkkeyuni.c

index e19167f9ad3b64b8fb130ada44b7ec59cf3d13b4..bf7e399d77af42cbb002675fab19252cfe67d9eb 100644 (file)
@@ -835,18 +835,13 @@ static const struct {
   /* Following items added to GTK, not in the xterm table */
 
   /* A few ASCII control characters */
-#ifndef GDK_WINDOWING_WIN32
+
   { 0xFF08 /* Backspace */, '\b' },
   { 0xFF09 /* Tab       */, '\t'  },
-#endif
-
   { 0xFF0A /* Linefeed  */, '\n' },
   { 0xFF0B /* Vert. Tab */, '\v' },
-
-#ifndef GDK_WINDOWING_WIN32
   { 0xFF0D /* Return    */, '\r' },
   { 0xFF1B /* Escape    */, '\033' },
-#endif
 
   /* Numeric keypad */
 
@@ -871,9 +866,7 @@ static const struct {
 
   /* End numeric keypad */
 
-#ifndef GDK_WINDOWING_WIN32
   { 0xFFFF /* Delete */, '\177' }
-#endif
 };
 
 /**