diff --git a/NEWS.md b/NEWS.md index 4804c80e..e54adeeb 100644 --- a/NEWS.md +++ b/NEWS.md @@ -3,6 +3,8 @@ Version 0.7.5 - change: remove "add indent" option in the editor general options widget ( It's merged with "auto indent" option) - enhancement: auto insert a new line when input an enter between '(' and ')' or between '[' and ']' - fix: correctly updates cursor position when pasting from clipboard + - enhancement: auto unindent when input protected: public: private: case *: + - enhancement: can use PageDown / PageUp / Home / End to scroll in the auto completion popup Version 0.7.4 - fix: when debug a project, and have breakpoints that not in opened editors, dev-cpp will crash diff --git a/RedPandaIDE/widgets/codecompletionlistview.cpp b/RedPandaIDE/widgets/codecompletionlistview.cpp index b85608f8..96e21a57 100644 --- a/RedPandaIDE/widgets/codecompletionlistview.cpp +++ b/RedPandaIDE/widgets/codecompletionlistview.cpp @@ -10,7 +10,12 @@ CodeCompletionListView::CodeCompletionListView(QWidget *parent) : QListView(pare void CodeCompletionListView::keyPressEvent(QKeyEvent *event) { if (event->key() == Qt::Key_Up - || event->key() == Qt::Key_Down) { + || event->key() == Qt::Key_Down + || event->key() == Qt::Key_PageDown + || event->key() == Qt::Key_PageUp + || event->key() == Qt::Key_Home + || event->key() == Qt::Key_End + ) { QListView::keyPressEvent(event); return; }