From c8f14581ff9406fe8384a16dbfee9770fd712481 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 28 Aug 2011 18:12:55 +0000 Subject: Enabled ui::Console command completion again. --- src/ui/console.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/ui') diff --git a/src/ui/console.cc b/src/ui/console.cc index 00aa09f..df7d2f9 100644 --- a/src/ui/console.cc +++ b/src/ui/console.cc @@ -131,12 +131,12 @@ bool Console::on_keypress(const int key, const unsigned int modifier) return false; } break; - /* - case SDLK_TAB: - core::CommandBuffer::complete( (*history_pos), input_pos); - return true; - break; - */ + + case SDLK_TAB: + console_input->complete(); + return true; + break; + case SDLK_RETURN: if (console_input->text().size()) { // store input in history -- cgit v1.2.3