[gtk+/gtk-3-0] Make gdk_keyval_to_unicode return more codes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-0] Make gdk_keyval_to_unicode return more codes
- Date: Wed, 16 Mar 2011 16:54:45 +0000 (UTC)
commit ff412d2c5dd7544f074ef4e557d5e2b22a37f9e1
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Mar 16 12:46:45 2011 -0400
Make gdk_keyval_to_unicode return more codes
Previously, we didn't map ASCII controls to their Unicode
counterparts. Fix that.
https://bugzilla.gnome.org/show_bug.cgi?id=644836
gdk/gdkkeyuni.c | 24 +++++++++++++++++-------
1 files changed, 17 insertions(+), 7 deletions(-)
---
diff --git a/gdk/gdkkeyuni.c b/gdk/gdkkeyuni.c
index a029044..1ff50a0 100644
--- a/gdk/gdkkeyuni.c
+++ b/gdk/gdkkeyuni.c
@@ -831,15 +831,25 @@ static const struct {
/* Following items added to GTK, not in the xterm table */
+ /* A few ASCII control characters */
+
+ { 0xFF08 /* Backspace */, '\b' },
+ { 0xFF09 /* Tab */, '\t' },
+ { 0xFF0A /* Linefeed */, '\n' },
+ { 0xFF0B /* Vert. Tab */, '\v' },
+ { 0xFF0D /* Return */, '\r' },
+ { 0xFF1B /* Escape */, '\033' },
+ { 0xFFFF /* Delete */, '\177' },
+
/* Numeric keypad */
-
- { 0xFF80 /* Space */, ' ' },
- { 0xFFAA /* Multiply */, '*' },
- { 0xFFAB /* Add */, '+' },
+
+ { 0xFF80 /* Space */, ' ' },
+ { 0xFFAA /* Multiply */, '*' },
+ { 0xFFAB /* Add */, '+' },
{ 0xFFAC /* Separator */, ',' },
- { 0xFFAD /* Subtract */, '-' },
- { 0xFFAE /* Decimal */, '.' },
- { 0xFFAF /* Divide */, '/' },
+ { 0xFFAD /* Subtract */, '-' },
+ { 0xFFAE /* Decimal */, '.' },
+ { 0xFFAF /* Divide */, '/' },
{ 0xFFB0 /* 0 */, '0' },
{ 0xFFB1 /* 1 */, '1' },
{ 0xFFB2 /* 2 */, '2' },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]