mirror of
https://github.com/clangen/musikcube.git
synced 2024-12-28 15:16:43 +00:00
Fixed KEY_DOWN behavior in search layouts to not focus the input view.
This commit is contained in:
parent
f134f725fe
commit
fe5c91f24a
@ -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())) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user