do not interrupt searching

This commit is contained in:
Alexander Eckart committed 2012-12-02 22:21:30 +01:00
1 parent e762d290cc
commit e2552b83d4
1 file changed
+4 -3
+4 -3
View File
@@ -185,7 +185,8 @@ namespace Vocaluxe.Screens
break;
case Keys.Space:
ToggleSongOptions(ESongOptionsView.General);
if (!_SearchActive)
ToggleSongOptions(ESongOptionsView.General);
break;
case Keys.F3:
@@ -232,7 +233,7 @@ namespace Vocaluxe.Screens
//TODO: We need another key for random!
case Keys.R:
if (CSongs.Category != -1 && KeyEvent.Mod == Modifier.Ctrl)
if (!_SearchActive && CSongs.Category != -1 && KeyEvent.Mod == Modifier.Ctrl)
{
SongMenus[htSongMenus(SongMenu)].SetSelectedSong(CSongs.GetRandomSong());
}
@@ -240,7 +241,7 @@ namespace Vocaluxe.Screens
//TODO: Delete that!
case Keys.S:
if (CSongs.NumVisibleSongs > 0)
if (!_SearchActive && CSongs.NumVisibleSongs > 0)
StartMedleySong(SongMenus[htSongMenus(SongMenu)].GetSelectedSong());
break;
}