summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog
diff options
context:
space:
mode:
authorMartin Duffy <martin.duffy@kitware.com>2022-04-07 18:18:57 (GMT)
committerMartin Duffy <martin.duffy@kitware.com>2022-04-07 19:06:35 (GMT)
commit0354865061115b97b670bd1d1dea9847d5306af9 (patch)
tree72c69917f22e27ac1c3e32fde3e2a84a7aa654de /Source/CursesDialog
parentde802fc5a35780581948f7638f0f22c3974922dd (diff)
downloadCMake-0354865061115b97b670bd1d1dea9847d5306af9.zip
CMake-0354865061115b97b670bd1d1dea9847d5306af9.tar.gz
CMake-0354865061115b97b670bd1d1dea9847d5306af9.tar.bz2
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
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r--Source/CursesDialog/cmCursesLongMessageForm.cxx4
1 files 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);