mirror of
https://github.com/clangen/musikcube.git
synced 2024-10-02 04:52:32 +00:00
Fixed category switching on keyboards with meta, not alt.
This commit is contained in:
parent
0c47cdc483
commit
8d3d24c5e6
@ -95,16 +95,16 @@ void LibraryLayout::OnCategoryViewInvalidated(
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool LibraryLayout::KeyPress(const std::string& key) {
|
bool LibraryLayout::KeyPress(const std::string& key) {
|
||||||
if (key == "ALT_1") {
|
if (key == "ALT_1" || key == "M-1") {
|
||||||
this->categoryList->SetFieldName(Track::ARTIST_ID);
|
this->categoryList->SetFieldName(constants::Track::ARTIST_ID);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (key == "ALT_2") {
|
else if (key == "ALT_2" || key == "M-2") {
|
||||||
this->categoryList->SetFieldName(Track::ALBUM_ID);
|
this->categoryList->SetFieldName(constants::Track::ALBUM_ID);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (key == "ALT_3") {
|
else if (key == "ALT_3" || key == "M-3") {
|
||||||
this->categoryList->SetFieldName(Track::GENRE_ID);
|
this->categoryList->SetFieldName(constants::Track::GENRE_ID);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (key == "KEY_F(5)") {
|
else if (key == "KEY_F(5)") {
|
||||||
|
Loading…
Reference in New Issue
Block a user