forked from mirror/OpenTTD
(svn r14679) -Fix [FS#2431]: opening the OSK on the chatbox did disable map scrolling (with keyboard) until another window with editbox was opened and closed. Just "refcount" the open edit boxes instead of setting/clearing a bit when opening/closing a window.
This commit is contained in:
@@ -199,7 +199,6 @@ struct SignWindow : QueryStringBaseWindow, SignList {
|
||||
|
||||
SignWindow(const WindowDesc *desc, const Sign *si) : QueryStringBaseWindow(MAX_LENGTH_SIGN_NAME_BYTES, desc)
|
||||
{
|
||||
SetBit(_no_scroll, SCROLL_EDIT);
|
||||
this->caption = STR_280B_EDIT_SIGN_TEXT;
|
||||
this->afilter = CS_ALPHANUMERAL;
|
||||
this->LowerWidget(QUERY_EDIT_SIGN_WIDGET_TEXT);
|
||||
@@ -208,11 +207,6 @@ struct SignWindow : QueryStringBaseWindow, SignList {
|
||||
this->FindWindowPlacementAndResize(desc);
|
||||
}
|
||||
|
||||
~SignWindow()
|
||||
{
|
||||
ClrBit(_no_scroll, SCROLL_EDIT);
|
||||
}
|
||||
|
||||
void UpdateSignEditWindow(const Sign *si)
|
||||
{
|
||||
char *last_of = &this->edit_str_buf[this->edit_str_size - 1]; // points to terminating '\0'
|
||||
|
Reference in New Issue
Block a user