[vte] emulation: Fix escape sequences of normal and keypad Enter with modifiers
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] emulation: Fix escape sequences of normal and keypad Enter with modifiers
- Date: Tue, 20 Jan 2015 22:37:51 +0000 (UTC)
commit c91ad56404898a4f2e7ef668edd52497f19cf5de
Author: Egmont Koblinger <egmont gmail com>
Date: Tue Jan 20 23:35:42 2015 +0100
emulation: Fix escape sequences of normal and keypad Enter with modifiers
https://bugzilla.gnome.org/show_bug.cgi?id=743258
src/keymap.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/keymap.c b/src/keymap.c
index 44a0e67..04604ab 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -108,8 +108,7 @@ static const struct _vte_keymap_entry _vte_keymap_GDK_Tab[] = {
};
static const struct _vte_keymap_entry _vte_keymap_GDK_Return[] = {
- {cursor_all, keypad_all, VTE_META_MASK, _VTE_CAP_ESC "\n", 2},
- {cursor_all, keypad_all, GDK_CONTROL_MASK, "\n", 1},
+ {cursor_all, keypad_all, VTE_META_MASK, _VTE_CAP_ESC "\r", 2},
{cursor_all, keypad_all, 0, "\r", 1},
{cursor_all, keypad_all, 0, X_NULL, 0},
};
@@ -239,10 +238,8 @@ static const struct _vte_keymap_entry _vte_keymap_GDK_KP_Tab[] = {
};
static const struct _vte_keymap_entry _vte_keymap_GDK_KP_Enter[] = {
- {cursor_all, keypad_app, VTE_NUMLOCK_MASK | GDK_CONTROL_MASK, "\n", 1},
{cursor_all, keypad_app, VTE_NUMLOCK_MASK, "\r", 1},
{cursor_all, keypad_app, 0, _VTE_CAP_SS3 "M", -1},
- {cursor_all, keypad_all, GDK_CONTROL_MASK, "\n", 1},
{cursor_all, keypad_all, 0, "\r", 1},
{cursor_all, keypad_all, 0, X_NULL, 0},
};
@@ -895,6 +892,7 @@ _vte_keymap_key_get_modifier_encoding_method(guint keyval)
case GDK_KEY_KP_Multiply:
case GDK_KEY_KP_Subtract:
case GDK_KEY_KP_Add:
+ case GDK_KEY_KP_Enter:
method = MODIFIER_ENCODING_SHORT;
break;
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]