window: support early exit from the readline prompt with Ctrl-{C,G}

This commit is contained in:
Andrzej Rybczak
2014-10-30 23:47:31 +01:00
parent 1d0cfce646
commit 6dd7c742c6
3 changed files with 35 additions and 1 deletions

View File

@@ -226,6 +226,10 @@ int main(int argc, char **argv)
{
Statusbar::printf("Error: %1%", e.errorMessage());
}
catch (NC::PromptAborted &)
{
Statusbar::printf("Action aborted");
}
if (myScreen == myPlaylist)
myPlaylist->EnableHighlighting();