diff options
Diffstat (limited to 'src/console/ConsoleView.cpp')
| -rw-r--r-- | src/console/ConsoleView.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/console/ConsoleView.cpp b/src/console/ConsoleView.cpp index 504b28a..bbc624e 100644 --- a/src/console/ConsoleView.cpp +++ b/src/console/ConsoleView.cpp @@ -24,14 +24,14 @@ ConsoleView::ConsoleView(): }; commandField = new ui::Textbox(ui::Point(0, Size.Y-16), ui::Point(Size.X, 16), ""); commandField->Appearance.HorizontalAlign = ui::Appearance::AlignLeft; - commandField->Appearance.VerticalAlign = ui::Appearance::AlignBottom; + commandField->Appearance.VerticalAlign = ui::Appearance::AlignMiddle; commandField->SetActionCallback(new CommandHighlighter(this)); AddComponent(commandField); FocusComponent(commandField); commandField->SetBorder(false); } -void ConsoleView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt) +void ConsoleView::DoKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt) { switch(key) { @@ -49,6 +49,9 @@ void ConsoleView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, b case KEY_UP: c->PreviousCommand(); break; + default: + Window::DoKeyPress(key, character, shift, ctrl, alt); + break; } } |
