From 3e1403d3cb683cfb164e3cbd1fb39e86871b9e08 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Fri, 17 Dec 2004 00:53:51 +0000 Subject: Focus that chat input field so that there is no need to click it. --- src/Makefile.am | 6 +++--- src/graphic/graphic.cpp | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index e06105a8..8da35977 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,4 +1,4 @@ -bin_PROGRAMS = tmw +bin_PROGRAMS = ../tmw tmw_SOURCES = sound/sound.cpp \ graphic/2xsai.cpp \ graphic/graphic.cpp \ @@ -10,8 +10,8 @@ tmw_SOURCES = sound/sound.cpp \ gui/setup.cpp \ gui/gui.cpp \ gui/login.cpp \ - gui/button.cpp \ - gui/checkbox.cpp \ + gui/button.cpp \ + gui/checkbox.cpp \ gui/char_server.cpp \ gui/char_select.cpp \ gui/inventory.cpp \ diff --git a/src/graphic/graphic.cpp b/src/graphic/graphic.cpp index 50b1083c..6bdcf9ba 100644 --- a/src/graphic/graphic.cpp +++ b/src/graphic/graphic.cpp @@ -231,6 +231,9 @@ void init_graphic() { guiTop->add(chatInput); + chatInput->requestFocus(); + + npc_player = init_dialog(npc_dialog, -1); position_dialog(npc_dialog, 300, 200); skill_player = init_dialog(skill_dialog, -1); -- cgit v1.2.3-70-g09d2