From 75f6bda782af3e24beed49d6ac7b44fdf2677d35 Mon Sep 17 00:00:00 2001 From: Tobias Boege Date: Tue, 4 Feb 2014 20:02:50 +0000 Subject: [PATCH] [GB.NCURSES] * NEW: Add Key.Esc constant to catch escape key (without needing to know that it's ASCII 0x1b). git-svn-id: svn://localhost/gambas/trunk@6133 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- gb.ncurses/src/c_key.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gb.ncurses/src/c_key.c b/gb.ncurses/src/c_key.c index 90352925b..11a78b56d 100644 --- a/gb.ncurses/src/c_key.c +++ b/gb.ncurses/src/c_key.c @@ -39,6 +39,7 @@ GB_DESC CKeyDesc[] = { GB_NOT_CREATABLE(), GB_CONSTANT("Return", "i", (int) '\n'), + GB_CONSTANT("Esc", "i", (int) '\x1b'), GB_CONSTANT("Break", "i", KEY_BREAK), GB_CONSTANT("Home", "i", KEY_HOME),