File diff r19777:9fe4698602ed → r19778:979f3421fa37
src/network/network_gui.cpp
Show inline comments
 
@@ -835,14 +835,12 @@ public:
 
			return ES_HANDLED;
 
		}
 

	
 
		if (this->HandleEditBoxKey(WID_NG_CLIENT, key, keycode, state) == HEBR_NOT_FOCUSED) {
 
			if (this->server != NULL) {
 
				if (keycode == WKC_DELETE) { // Press 'delete' to remove servers
 
					NetworkGameListRemoveItem(this->server);
 
					if (this->server == this->last_joined) this->last_joined = NULL;
 
					this->server = NULL;
 
					this->list_pos = SLP_INVALID;
 
				}
 
		if (this->server != NULL) {
 
			if (keycode == WKC_DELETE) { // Press 'delete' to remove servers
 
				NetworkGameListRemoveItem(this->server);
 
				if (this->server == this->last_joined) this->last_joined = NULL;
 
				this->server = NULL;
 
				this->list_pos = SLP_INVALID;
 
			}
 
		}
 

	
 
@@ -1172,13 +1170,6 @@ struct NetworkStartServerWindow : public
 
		this->SetDirty();
 
	}
 

	
 
	virtual EventState OnKeyPress(uint16 key, uint16 keycode)
 
	{
 
		EventState state = ES_NOT_HANDLED;
 
		this->HandleEditBoxKey(WID_NSS_GAMENAME, key, keycode, state);
 
		return state;
 
	}
 

	
 
	virtual void OnOSKInput(int wid)
 
	{
 
		if (wid == WID_NSS_GAMENAME) {
 
@@ -2151,13 +2142,6 @@ struct NetworkCompanyPasswordWindow : pu
 
				break;
 
		}
 
	}
 

	
 
	virtual EventState OnKeyPress(uint16 key, uint16 keycode)
 
	{
 
		EventState state = ES_NOT_HANDLED;
 
		this->HandleEditBoxKey(WID_NCP_PASSWORD, key, keycode, state);
 
		return state;
 
	}
 
};
 

	
 
static const NWidgetPart _nested_network_company_password_window_widgets[] = {