From 1d97f1c9853960ba99a8808263cc6443d9d09ef1 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Fri, 25 Jan 2013 22:57:51 -0500 Subject: [PATCH] typing '~' doesn't close the lua console --- .gitignore | 2 ++ src/console/ConsoleView.cpp | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c7fe9f482..9ac6e3872 100644 --- a/.gitignore +++ b/.gitignore @@ -46,6 +46,8 @@ Makefile.me *.project *.cproject *.settings +*.cbp +*.layout config.log *.sconsign.dblite *.sconf_temp diff --git a/src/console/ConsoleView.cpp b/src/console/ConsoleView.cpp index 67c83de33..5390cbde8 100644 --- a/src/console/ConsoleView.cpp +++ b/src/console/ConsoleView.cpp @@ -37,7 +37,10 @@ void ConsoleView::DoKeyPress(int key, Uint16 character, bool shift, bool ctrl, b { case KEY_ESCAPE: case '`': - c->CloseConsole(); + if (character != '~') + c->CloseConsole(); + else + Window::DoKeyPress(key, character, shift, ctrl, alt); break; case KEY_RETURN: case KEY_ENTER: