- enhancement: can use PageDown / PageUp / Home / End to scroll in the auto completion popup

This commit is contained in:
royqh1979@gmail.com 2021-10-29 21:33:45 +08:00
parent f9cefaf196
commit af03c417ec
2 changed files with 8 additions and 1 deletions

View File

@ -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) - 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 ']' - enhancement: auto insert a new line when input an enter between '(' and ')' or between '[' and ']'
- fix: correctly updates cursor position when pasting from clipboard - 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 Version 0.7.4
- fix: when debug a project, and have breakpoints that not in opened editors, dev-cpp will crash - fix: when debug a project, and have breakpoints that not in opened editors, dev-cpp will crash

View File

@ -10,7 +10,12 @@ CodeCompletionListView::CodeCompletionListView(QWidget *parent) : QListView(pare
void CodeCompletionListView::keyPressEvent(QKeyEvent *event) void CodeCompletionListView::keyPressEvent(QKeyEvent *event)
{ {
if (event->key() == Qt::Key_Up 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); QListView::keyPressEvent(event);
return; return;
} }