Merge topic 'ccmake-macos-backspace'

95dae8973c ccmake: Fix backspace key in '/' searches on macOS

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12273
This commit is contained in:
Brad King
2026-07-14 13:19:39 +00:00
committed by Kitware Robot

View File

@@ -744,7 +744,8 @@ void cmCursesMainForm::HandleInput()
static_cast<std::string::size_type>(x - 10)) {
this->SearchString += static_cast<char>(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();
}