Merge topic 'ccmake-vim-key-navigation'

0354865061 ccmake: Allow Vim keys in cmCursesLongMessageForm

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Acked-by: Ben Boeckel <ben.boeckel@kitware.com>
Merge-request: !7152
This commit is contained in:
Brad King 2022-04-11 12:52:23 +00:00 committed by Kitware Robot
commit 7fc248bde3

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