summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@src.gnome.org>2002-10-18 20:53:53 +0000
committerNalin Dahyabhai <nalin@src.gnome.org>2002-10-18 20:53:53 +0000
commit7459d35c062c3c91d98988cb95d55151c9752423 (patch)
tree6dc372b7c5beca77afdf471bfe4eb86b92fb39ef
parent41f60f34704e288a36e681dfe6b15e386c90dd20 (diff)
downloadvte-7459d35c062c3c91d98988cb95d55151c9752423.tar.gz
add a mapping for the escape key. Oops.
* src/keymap.c: add a mapping for the escape key. Oops.
-rw-r--r--ChangeLog3
-rw-r--r--src/keymap.c6
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1509b186..2450d4bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
2002-10-18 nalin
+ * src/keymap.c: add a mapping for the escape key.
+
+2002-10-18 nalin
* src/vte.c: implement decset 42 (enable/disable NRC processing), but
enable it by default. Implement decset 44 (margin bell).
* src/vte.c: do not trust the event->string. Use gdk_keyval_to_unicode
diff --git a/src/keymap.c b/src/keymap.c
index 4eda4c0e..5bf0c0af 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -82,6 +82,11 @@ static struct _vte_keymap_entry _vte_keymap_GDK_Return[] = {
{cursor_all, keypad_all, fkey_all, 0, NULL, 0, NULL},
};
+static struct _vte_keymap_entry _vte_keymap_GDK_Escape[] = {
+ {cursor_all, keypad_all, fkey_all, 0, "", 1, NULL},
+ {cursor_all, keypad_all, fkey_all, 0, NULL, 0, NULL},
+};
+
static struct _vte_keymap_entry _vte_keymap_GDK_Insert[] = {
{cursor_all, keypad_app, fkey_all, 0, NULL, 0, "kI"},
{cursor_all, keypad_all, fkey_all, 0, NULL, 0, NULL},
@@ -571,6 +576,7 @@ static struct _vte_keymap_group {
} _vte_keymap[] = {
{GDK_space, _vte_keymap_GDK_space},
{GDK_Return, _vte_keymap_GDK_Return},
+ {GDK_Escape, _vte_keymap_GDK_Escape},
{GDK_Tab, _vte_keymap_GDK_Tab},
{GDK_ISO_Left_Tab, _vte_keymap_GDK_ISO_Left_Tab},
{GDK_Home, _vte_keymap_GDK_Home},