Mercurial > hg > openttd
diff src/network/network_gui.cpp @ 8087:4537e595b8b6 draft
(svn r11648) -Fix [FS#1560]: the company password was not set when one pressed the enter key.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 16 Dec 2007 19:28:07 +0000 |
parents | 4540919ba965 |
children | 47b1794a7eca |
line wrap: on
line diff
--- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -1938,7 +1938,11 @@ case WE_KEYPRESS: switch (HandleEditBoxKey(w, &WP(w, chatquerystr_d), 4, e)) { case 1: // Return - /* FALLTHROUGH */ + e->event = WE_CLICK; + e->we.click.widget = NCPWW_OK; + NetworkCompanyPasswordWindowWndProc(w, e); + break; + case 2: // Escape DeleteWindow(w); break;