mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-19 12:39:11 +00:00
(svn r11648) -Fix [FS#1560]: the company password was not set when one pressed the enter key.
This commit is contained in:
@@ -1938,7 +1938,11 @@ static void NetworkCompanyPasswordWindowWndProc(Window *w, WindowEvent *e)
|
||||
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;
|
||||
|
Reference in New Issue
Block a user