Changeset - r11213:e54230975939
[Not reviewed]
master
0 1 0
rubidium - 16 years ago 2009-02-24 13:32:18
rubidium@openttd.org
(svn r15566) -Change: reintroduce space as valid method of selecting 'content' as long as the filter box is not focused. Enter will also work when the filter box is focused.
1 file changed with 9 insertions and 5 deletions:
0 comments (0 inline, 0 general)
src/network/network_content_gui.cpp
Show inline comments
 
@@ -625,13 +625,17 @@ public:
 
				this->list_pos = this->content.Length() - 1;
 
				break;
 

	
 
			case WKC_SPACE:
 
			case WKC_RETURN:
 
				if (this->selected != NULL) {
 
					_network_content_client.ToggleSelectedState(this->selected);
 
					this->content.ForceResort();
 
					this->SetDirty();
 
				if (keycode == WKC_RETURN || !IsWidgetFocused(NCLWW_FILTER)) {
 
					if (this->selected != NULL) {
 
						_network_content_client.ToggleSelectedState(this->selected);
 
						this->content.ForceResort();
 
						this->SetDirty();
 
					}
 
					return ES_HANDLED;
 
				}
 
				return ES_HANDLED;
 
				/* Fall through when pressing space is pressed and filter isn't focused */
 

	
 
			default: {
 
				/* Handle editbox input */
0 comments (0 inline, 0 general)