mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-07 00:00:57 +00:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user