Fixed KEY_DOWN behavior in search layouts to not focus the input view.

This commit is contained in:
casey 2016-07-07 21:58:17 -07:00
parent f134f725fe
commit fe5c91f24a
2 changed files with 8 additions and 4 deletions

View File

@ -176,8 +176,10 @@ bool SearchLayout::KeyPress(const std::string& key) {
}
if (key == "KEY_DOWN") {
this->FocusNext();
return true;
if (this->GetFocus() == this->input) {
this->FocusNext();
return true;
}
}
else if (key == "KEY_UP") {
if (IS_CATEGORY(this->GetFocus())) {

View File

@ -152,8 +152,10 @@ bool TrackSearchLayout::KeyPress(const std::string& key) {
return true;
}
else if (key == "KEY_DOWN") {
this->FocusNext();
return true;
if (this->GetFocus() == this->input) {
this->FocusNext();
return true;
}
}
else if (key == "KEY_UP") {
if (this->GetFocus() == this->trackList) {