File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ Term::Result Term::prompt(const std::string& message,
3030 } else if (key == ' n' || key == ' N' ) {
3131 Term::write (" \n " );
3232 return Result::NO;
33- } else if (key == Term::Key::CTRL + ' c' ) {
33+ } else if (key == Term::Key::CTRL + ' c' ||
34+ key == Term::Key::CTRL + ' d' ) {
3435 Term::write (" \n " );
3536 return Result::ABORT;
3637 } else if (key == Term::Key::ENTER) {
@@ -55,7 +56,8 @@ Term::Result Term::prompt(const std::string& message,
5556 length++;
5657 input.push_back (static_cast <char >(
5758 key + 32 )); // convert upper case to lowercase
58- } else if (key == Term::Key::CTRL + ' c' ) {
59+ } else if (key == Term::Key::CTRL + ' c' ||
60+ key == Term::Key::CTRL + ' d' ) {
5961 std::cout << ' \n ' ;
6062 return Result::ABORT;
6163 } else if (key == Term::Key::BACKSPACE) {
You can’t perform that action at this time.
0 commit comments