diff options
author | Nalin Dahyabhai <nalin@src.gnome.org> | 2003-02-21 04:02:58 +0000 |
---|---|---|
committer | Nalin Dahyabhai <nalin@src.gnome.org> | 2003-02-21 04:02:58 +0000 |
commit | 37eb5f21a5df5ba89f2c4bc518c9e90422d21ca8 (patch) | |
tree | 02d76db96bbc9383c7fc6da83c8decb4a398561b | |
parent | edf8a1725c2818c191dfaf102bf1854d5c154f1a (diff) |
pull up from HEAD to get proper fix for Ctrl+digit keys, which shouldn't
* src/keymap.c: pull up from HEAD to get proper fix for Ctrl+digit keys, which
shouldn't break Meta+digit keys (#106667).
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/keymap.c | 25 |
2 files changed, 20 insertions, 9 deletions
@@ -1,4 +1,8 @@ 2003-02-20 + * src/keymap.c: pull up from HEAD to get proper fix for Ctrl+digit + keys, which shouldn't break Meta+digit keys (#106667). + +2003-02-20 * src/vte.c: fix gratuitous IM resetting, don't mess with the IM when we're not realized and it's a NULL pointer. From HEAD. diff --git a/src/keymap.c b/src/keymap.c index 2ce2bd6..c747a74 100644 --- a/src/keymap.c +++ b/src/keymap.c @@ -153,37 +153,30 @@ static struct _vte_keymap_entry _vte_keymap_GDK_ISO_Left_Tab[] = { /* Various numeric keys enter control characters. */ static struct _vte_keymap_entry _vte_keymap_GDK_2[] = { {cursor_all, keypad_all, fkey_all, GDK_CONTROL_MASK, "\0", 1, NULL}, - {cursor_all, keypad_all, fkey_all, 0, "2", 1, NULL}, {cursor_all, keypad_all, fkey_all, 0, NULL, 0, NULL}, }; static struct _vte_keymap_entry _vte_keymap_GDK_3[] = { {cursor_all, keypad_all, fkey_all, GDK_CONTROL_MASK, "\033", 1, NULL}, - {cursor_all, keypad_all, fkey_all, 0, "3", 1, NULL}, {cursor_all, keypad_all, fkey_all, 0, NULL, 0, NULL}, }; static struct _vte_keymap_entry _vte_keymap_GDK_4[] = { {cursor_all, keypad_all, fkey_all, GDK_CONTROL_MASK, "\034", 1, NULL}, - {cursor_all, keypad_all, fkey_all, 0, "4", 1, NULL}, {cursor_all, keypad_all, fkey_all, 0, NULL, 0, NULL}, }; static struct _vte_keymap_entry _vte_keymap_GDK_5[] = { {cursor_all, keypad_all, fkey_all, GDK_CONTROL_MASK, "\035", 1, NULL}, - {cursor_all, keypad_all, fkey_all, 0, "5", 1, NULL}, {cursor_all, keypad_all, fkey_all, 0, NULL, 0, NULL}, }; static struct _vte_keymap_entry _vte_keymap_GDK_6[] = { {cursor_all, keypad_all, fkey_all, GDK_CONTROL_MASK, "\036", 1, NULL}, - {cursor_all, keypad_all, fkey_all, 0, "6", 1, NULL}, {cursor_all, keypad_all, fkey_all, 0, NULL, 0, NULL}, }; static struct _vte_keymap_entry _vte_keymap_GDK_7[] = { {cursor_all, keypad_all, fkey_all, GDK_CONTROL_MASK, "\037", 1, NULL}, - {cursor_all, keypad_all, fkey_all, 0, "7", 1, NULL}, {cursor_all, keypad_all, fkey_all, 0, NULL, 0, NULL}, }; static struct _vte_keymap_entry _vte_keymap_GDK_8[] = { {cursor_all, keypad_all, fkey_all, GDK_CONTROL_MASK, "\177", 1, NULL}, - {cursor_all, keypad_all, fkey_all, 0, "8", 1, NULL}, {cursor_all, keypad_all, fkey_all, 0, NULL, 0, NULL}, }; @@ -1002,8 +995,22 @@ _vte_keymap_map(guint keyval, } mods &= entries[j].mod_mask; } - g_assert((fkey_mode == 0) || (fkey_mode == fkey_all)); - g_assert(mods == 0); + switch (_vte_keymap[i].keyval) { + case GDK_2: + case GDK_3: + case GDK_4: + case GDK_5: + case GDK_6: + case GDK_7: + case GDK_8: + /* Known non-full-coverage cases. */ + break; + default: + /* Everything else we double-check. */ + g_assert((fkey_mode == 0) || (fkey_mode == fkey_all)); + g_assert(mods == 0); + break; + } entries = NULL; #endif if (_vte_keymap[i].keyval == keyval) { |