remove enterPressed from remaining screens
This commit is contained in:
@@ -107,11 +107,6 @@ std::wstring SortPlaylistDialog::title()
|
||||
return previousScreen()->title();
|
||||
}
|
||||
|
||||
void SortPlaylistDialog::enterPressed()
|
||||
{
|
||||
w.current()->value().run();
|
||||
}
|
||||
|
||||
void SortPlaylistDialog::mouseButtonPressed(MEVENT me)
|
||||
{
|
||||
if (w.hasCoords(me.x, me.y))
|
||||
@@ -120,13 +115,27 @@ void SortPlaylistDialog::mouseButtonPressed(MEVENT me)
|
||||
{
|
||||
w.Goto(me.y);
|
||||
if (me.bstate & BUTTON3_PRESSED)
|
||||
enterPressed();
|
||||
runAction();
|
||||
}
|
||||
else
|
||||
Screen<WindowType>::mouseButtonPressed(me);
|
||||
}
|
||||
}
|
||||
|
||||
/**********************************************************************/
|
||||
|
||||
bool SortPlaylistDialog::actionRunnable()
|
||||
{
|
||||
return !w.empty();
|
||||
}
|
||||
|
||||
void SortPlaylistDialog::runAction()
|
||||
{
|
||||
w.current()->value().run();
|
||||
}
|
||||
|
||||
/**********************************************************************/
|
||||
|
||||
void SortPlaylistDialog::moveSortOrderDown()
|
||||
{
|
||||
auto cur = w.currentV();
|
||||
|
||||
Reference in New Issue
Block a user