src/news_gui.cpp
changeset 10607 1ab30cead125
parent 10603 891ea39eacbb
child 10610 dfb846e37be3
equal deleted inserted replaced
10606:85598085994d 10607:1ab30cead125
   306 				}
   306 				}
   307 				break;
   307 				break;
   308 		}
   308 		}
   309 	}
   309 	}
   310 
   310 
   311 	virtual bool OnKeyPress(uint16 key, uint16 keycode)
   311 	virtual EventState OnKeyPress(uint16 key, uint16 keycode)
   312 	{
   312 	{
   313 		if (keycode == WKC_SPACE) {
   313 		if (keycode == WKC_SPACE) {
   314 			/* Don't continue. */
   314 			/* Don't continue. */
   315 			delete this;
   315 			delete this;
   316 			return false;
   316 			return ES_HANDLED;
   317 		}
   317 		}
   318 		return true;
   318 		return ES_NOT_HANDLED;
   319 	}
   319 	}
   320 
   320 
   321 	virtual void OnInvalidateData(int data)
   321 	virtual void OnInvalidateData(int data)
   322 	{
   322 	{
   323 		/* The chatbar has notified us that is was either created or closed */
   323 		/* The chatbar has notified us that is was either created or closed */