mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 11:10:52 +00:00
Disallow search match type toggle if input field is not focused.
This commit is contained in:
parent
992b62be7a
commit
bc96d35bb2
@ -207,7 +207,7 @@ bool CategorySearchLayout::KeyPress(const std::string& key) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else if (Hotkeys::Is(Hotkeys::SearchInputToggleMatchType, key)) {
|
||||
else if (Hotkeys::Is(Hotkeys::SearchInputToggleMatchType, key) && this->input->IsFocused()) {
|
||||
this->ToggleMatchType();
|
||||
return true;
|
||||
}
|
||||
|
@ -233,7 +233,7 @@ bool TrackSearchLayout::KeyPress(const std::string& key) {
|
||||
});
|
||||
return true;
|
||||
}
|
||||
else if (Hotkeys::Is(Hotkeys::SearchInputToggleMatchType, key)) {
|
||||
else if (Hotkeys::Is(Hotkeys::SearchInputToggleMatchType, key) && this->input->IsFocused()) {
|
||||
this->ToggleMatchType();
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user