mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-01 06:00:15 +02:00
typing '~' doesn't close the lua console
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -46,6 +46,8 @@ Makefile.me
|
|||||||
*.project
|
*.project
|
||||||
*.cproject
|
*.cproject
|
||||||
*.settings
|
*.settings
|
||||||
|
*.cbp
|
||||||
|
*.layout
|
||||||
config.log
|
config.log
|
||||||
*.sconsign.dblite
|
*.sconsign.dblite
|
||||||
*.sconf_temp
|
*.sconf_temp
|
||||||
|
@@ -37,7 +37,10 @@ void ConsoleView::DoKeyPress(int key, Uint16 character, bool shift, bool ctrl, b
|
|||||||
{
|
{
|
||||||
case KEY_ESCAPE:
|
case KEY_ESCAPE:
|
||||||
case '`':
|
case '`':
|
||||||
c->CloseConsole();
|
if (character != '~')
|
||||||
|
c->CloseConsole();
|
||||||
|
else
|
||||||
|
Window::DoKeyPress(key, character, shift, ctrl, alt);
|
||||||
break;
|
break;
|
||||||
case KEY_RETURN:
|
case KEY_RETURN:
|
||||||
case KEY_ENTER:
|
case KEY_ENTER:
|
||||||
|
Reference in New Issue
Block a user