1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-27 16:39:09 +00:00

(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:
rubidium
2008-12-16 17:58:27 +00:00
parent bfe9743f20
commit 1599ade7ca
7 changed files with 15 additions and 27 deletions

View File

@@ -277,7 +277,6 @@ struct NetworkChatWindow : public QueryStringBaseWindow {
InitializeTextBuffer(&this->text, this->edit_str_buf, this->edit_str_size, 0);
InvalidateWindowData(WC_NEWS_WINDOW, 0, this->height);
SetBit(_no_scroll, SCROLL_CHAT); // do not scroll the game with the arrow-keys
_chat_tab_completion_active = false;
@@ -287,7 +286,6 @@ struct NetworkChatWindow : public QueryStringBaseWindow {
~NetworkChatWindow ()
{
InvalidateWindowData(WC_NEWS_WINDOW, 0, 0);
ClrBit(_no_scroll, SCROLL_CHAT);
}
/**