From 0354865061115b97b670bd1d1dea9847d5306af9 Mon Sep 17 00:00:00 2001 From: Martin Duffy Date: Thu, 7 Apr 2022 14:18:57 -0400 Subject: 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 --- Source/CursesDialog/cmCursesLongMessageForm.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/CursesDialog/cmCursesLongMessageForm.cxx b/Source/CursesDialog/cmCursesLongMessageForm.cxx index 9b3a649..8a7bb86 100644 --- a/Source/CursesDialog/cmCursesLongMessageForm.cxx +++ b/Source/CursesDialog/cmCursesLongMessageForm.cxx @@ -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); -- cgit v0.12