summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog/cmCursesStringWidget.cxx
diff options
context:
space:
mode:
authorBerk Geveci <berk.geveci@kitware.com>2001-11-30 20:04:25 (GMT)
committerBerk Geveci <berk.geveci@kitware.com>2001-11-30 20:04:25 (GMT)
commit5b6e7bcf702dbed1e523e29880efa6d917b1f087 (patch)
tree20527abe0e327a63267d6ce1b9a972b8899a402f /Source/CursesDialog/cmCursesStringWidget.cxx
parente32fc72f48bdcebd3bac8ea2a44c9539aa80b1a7 (diff)
downloadCMake-5b6e7bcf702dbed1e523e29880efa6d917b1f087.zip
CMake-5b6e7bcf702dbed1e523e29880efa6d917b1f087.tar.gz
CMake-5b6e7bcf702dbed1e523e29880efa6d917b1f087.tar.bz2
Improving interface.
Diffstat (limited to 'Source/CursesDialog/cmCursesStringWidget.cxx')
-rw-r--r--Source/CursesDialog/cmCursesStringWidget.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/CursesDialog/cmCursesStringWidget.cxx b/Source/CursesDialog/cmCursesStringWidget.cxx
index 3504b3a..2bc39d8 100644
--- a/Source/CursesDialog/cmCursesStringWidget.cxx
+++ b/Source/CursesDialog/cmCursesStringWidget.cxx
@@ -54,6 +54,18 @@ bool cmCursesStringWidget::HandleInput(int& key, FORM* form, WINDOW* w)
strcpy(originalStr, buf);
}
}
+ else if ( key == KEY_DOWN || key == ctrl('n') ||
+ key == KEY_UP || key == ctrl('p') ||
+ key == KEY_NPAGE || key == ctrl('d') ||
+ key == KEY_PPAGE || key == ctrl('u'))
+ {
+ m_InEdit = false;
+ delete[] originalStr;
+ // trick to force forms to update the field buffer
+ form_driver(form, REQ_NEXT_FIELD);
+ form_driver(form, REQ_PREV_FIELD);
+ return false;
+ }
// esc
else if (key == 27)
{