summaryrefslogtreecommitdiff
path: root/src/console.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-12-06 02:31:47 +0000
committerbelugas <belugas@openttd.org>2007-12-06 02:31:47 +0000
commit7edf28529dad8d0619d10c27a480eeca7a896321 (patch)
tree197485baf9d0d317504f4c787e98776786d15b18 /src/console.cpp
parent49d632c31b47501217d54623b989a35df5672aad (diff)
downloadopenttd-7edf28529dad8d0619d10c27a480eeca7a896321.tar.xz
(svn r11578) -Codechange: Introduce the window default flag WDF_TEXTENTRY which specifies that the window holding it is actually one that enables an edit box.
Use this flag when dispatching a key event instead of using some hard coded window IDs. This should ease a little bit the creation of new edit aware windows.
Diffstat (limited to 'src/console.cpp')
-rw-r--r--src/console.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/console.cpp b/src/console.cpp
index 78f6f1143..5af02f243 100644
--- a/src/console.cpp
+++ b/src/console.cpp
@@ -202,7 +202,7 @@ static const Widget _iconsole_window_widgets[] = {
static const WindowDesc _iconsole_window_desc = {
0, 0, 2, 2, 2, 2,
WC_CONSOLE, WC_NONE,
- WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
+ WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_TEXTENTRY,
_iconsole_window_widgets,
IConsoleWndProc,
};