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:
Martin Duffy
2022-04-07 14:18:57 -04:00
parent de802fc5a3
commit 0354865061

View File

@@ -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);