forked from mirror/OpenTTD
(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.
This commit is contained in:
@@ -298,7 +298,7 @@ static const Widget _query_sign_edit_widgets[] = {
|
||||
static const WindowDesc _query_sign_edit_desc = {
|
||||
190, 170, 260, 42, 260, 42,
|
||||
WC_QUERY_STRING, WC_NONE,
|
||||
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
|
||||
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_TEXTENTRY,
|
||||
_query_sign_edit_widgets,
|
||||
QuerySignEditWndProc
|
||||
};
|
||||
|
Reference in New Issue
Block a user