Fixed category switching on keyboards with meta, not alt.

This commit is contained in:
Casey Langen 2016-05-27 17:55:25 -07:00
parent 0c47cdc483
commit 8d3d24c5e6

View File

@ -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)") {