mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-14 10:19:56 -06:00
ccmake: Allow Vim keys in cmCursesLongMessageForm
Added support for navigation of cmCursesLongMessageForm with j and k
which affects the help and log screens.
These keys were already supported for cmCursesMainForm since commit
e34e9c2705 (ccmake: Add VIM-like bindings for navigation, 2016-07-21,
v3.7.0-rc1~295^2), adding them here for consistency.
Fixes: #5233
This commit is contained in:
@@ -191,9 +191,9 @@ void cmCursesLongMessageForm::HandleInput()
|
||||
if (key == 'o' || key == 'e') {
|
||||
break;
|
||||
}
|
||||
if (key == KEY_DOWN || key == ctrl('n')) {
|
||||
if (key == KEY_DOWN || key == ctrl('n') || key == 'j') {
|
||||
form_driver(this->Form, REQ_SCR_FLINE);
|
||||
} else if (key == KEY_UP || key == ctrl('p')) {
|
||||
} else if (key == KEY_UP || key == ctrl('p') || key == 'k') {
|
||||
form_driver(this->Form, REQ_SCR_BLINE);
|
||||
} else if (key == KEY_NPAGE || key == ctrl('d')) {
|
||||
form_driver(this->Form, REQ_SCR_FPAGE);
|
||||
|
||||
Reference in New Issue
Block a user