Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/console.cc')
-rw-r--r--src/ui/console.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/console.cc b/src/ui/console.cc
index 67d5054..5c15bc5 100644
--- a/src/ui/console.cc
+++ b/src/ui/console.cc
@@ -74,6 +74,7 @@ Console::~Console()
void Console::show()
{
ui::Window::show();
+ raise();
SDL_WM_GrabInput(SDL_GRAB_OFF);
SDL_ShowCursor(SDL_ENABLE);
@@ -83,7 +84,8 @@ void Console::show()
history_pos = history.rbegin();
(*history_pos).clear();
console_input->set_text((*history_pos));
-
+ console_input->set_focus();
+
audio::play("ui/console");
}