changeset 23396:e145f37cb2e2

Allow binding space, escape and return to some action.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 29 Jun 2008 01:50:21 +0000
parents 7076f4e965c5
children 0119f73a76da
files finch/libgnt/gntkeys.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/finch/libgnt/gntkeys.c	Fri Jun 27 00:01:59 2008 +0000
+++ b/finch/libgnt/gntkeys.c	Sun Jun 29 01:50:21 2008 +0000
@@ -80,6 +80,9 @@
 	INSERT_KEY("down",   GNT_KEY_DOWN);
 
 	INSERT_KEY("tab",    "\t");
+	INSERT_KEY("escape", "\033");
+	INSERT_KEY("space", " ");
+	INSERT_KEY("return", GNT_KEY_ENTER);
 	INSERT_KEY("menu",   GNT_KEY_POPUP);
 
 	INSERT_KEY("f1",   GNT_KEY_F1);
@@ -119,6 +122,9 @@
 				code[ind] = (c ? 1 : 'a') + ch;
 				INSERT_COMB(str, code);
 			}
+			if (c == 0) {
+				INSERT_COMB("tab", "\033\t");
+			}
 		}
 	}
 	c = 0;