1
0
Fork 0

(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.

release/0.7
rubidium 2009-02-24 13:32:18 +00:00
parent 4bf2f4a166
commit 8fa247c4b1
1 changed files with 9 additions and 5 deletions

View File

@ -625,13 +625,17 @@ public:
this->list_pos = this->content.Length() - 1; this->list_pos = this->content.Length() - 1;
break; break;
case WKC_SPACE:
case WKC_RETURN: case WKC_RETURN:
if (this->selected != NULL) { if (keycode == WKC_RETURN || !IsWidgetFocused(NCLWW_FILTER)) {
_network_content_client.ToggleSelectedState(this->selected); if (this->selected != NULL) {
this->content.ForceResort(); _network_content_client.ToggleSelectedState(this->selected);
this->SetDirty(); this->content.ForceResort();
this->SetDirty();
}
return ES_HANDLED;
} }
return ES_HANDLED; /* Fall through when pressing space is pressed and filter isn't focused */
default: { default: {
/* Handle editbox input */ /* Handle editbox input */