typing '~' doesn't close the lua console

This commit is contained in:
jacob1 2013-01-25 22:57:51 -05:00
parent 4f59211ba8
commit 1d97f1c985
2 changed files with 6 additions and 1 deletions

2
.gitignore vendored
View File

@ -46,6 +46,8 @@ Makefile.me
*.project
*.cproject
*.settings
*.cbp
*.layout
config.log
*.sconsign.dblite
*.sconf_temp

View File

@ -37,7 +37,10 @@ void ConsoleView::DoKeyPress(int key, Uint16 character, bool shift, bool ctrl, b
{
case KEY_ESCAPE:
case '`':
if (character != '~')
c->CloseConsole();
else
Window::DoKeyPress(key, character, shift, ctrl, alt);
break;
case KEY_RETURN:
case KEY_ENTER: