Add event handling for new playlist filter toggle button
This commit is contained in:
1 parent
e209aee3e7
commit
5641390442
1 file changed
+11
-1
@@ -43,7 +43,7 @@ namespace Vocaluxe.Screens
|
|||||||
// Version number for theme files. Increment it, if you've changed something on the theme files!
|
// Version number for theme files. Increment it, if you've changed something on the theme files!
|
||||||
protected override int _ScreenVersion
|
protected override int _ScreenVersion
|
||||||
{
|
{
|
||||||
get { return 9; }
|
get { return 10; }
|
||||||
}
|
}
|
||||||
|
|
||||||
private const string _TextCategory = "TextCategory";
|
private const string _TextCategory = "TextCategory";
|
||||||
@@ -217,6 +217,11 @@ namespace Vocaluxe.Screens
|
|||||||
keyEvent.Handled = true;
|
keyEvent.Handled = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (keyEvent.Key == Keys.Enter && _Playlist.isButtonPlaylistListSelected())
|
||||||
|
{
|
||||||
|
_TogglePlaylistFilter();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Playlist selection is handled below not in base!
|
// Playlist selection is handled below not in base!
|
||||||
@@ -506,6 +511,11 @@ namespace Vocaluxe.Screens
|
|||||||
_SongMenu.SmallView = false;
|
_SongMenu.SmallView = false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (mouseEvent.LB && _Playlist.isButtonPlaylistListSelected())
|
||||||
|
{
|
||||||
|
_TogglePlaylistFilter();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (CHelper.IsInBounds(_SongMenu.Rect, mouseEvent))
|
else if (CHelper.IsInBounds(_SongMenu.Rect, mouseEvent))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user