summaryrefslogtreecommitdiff
path: root/src/window.h
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/window.h
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/window.h')
-rw-r--r--src/window.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.h b/src/window.h
index e98d99d24..a84943d21 100644
--- a/src/window.h
+++ b/src/window.h
@@ -208,7 +208,7 @@ enum WindowDefaultFlag {
WDF_STD_TOOLTIPS = 1 << 0, ///< use standard routine when displaying tooltips
WDF_DEF_WIDGET = 1 << 1, ///< default widget control for some widgets in the on click event
WDF_STD_BTN = 1 << 2, ///< default handling for close and drag widgets (widget no 0 and 1)
-
+ WDF_TEXTENTRY = 1 << 3, ///< This window is authorized to receive keyboard events
WDF_UNCLICK_BUTTONS = 1 << 4, ///< Unclick buttons when the window event times out */
WDF_STICKY_BUTTON = 1 << 5, ///< Set window to sticky mode; they are not closed unless closed with 'X' (widget 2)
WDF_RESIZABLE = 1 << 6, ///< A window can be resized