diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx index 74089e528a..4160669816 100644 --- a/Source/CursesDialog/cmCursesMainForm.cxx +++ b/Source/CursesDialog/cmCursesMainForm.cxx @@ -744,7 +744,8 @@ void cmCursesMainForm::HandleInput() static_cast(x - 10)) { this->SearchString += static_cast(key); } - } else if (key == ctrl('h') || key == KEY_BACKSPACE || key == KEY_DC) { + } else if (key == ctrl('h') || key == 127 || key == KEY_BACKSPACE || + key == KEY_DC) { if (!this->SearchString.empty()) { this->SearchString.pop_back(); }