Added Page Up / Down keys to calendar box.

This commit is contained in:
23rd 2022-01-07 08:35:45 +03:00 committed by John Preston
parent 749f837df5
commit 46fb5ee1d2
1 changed files with 6 additions and 2 deletions

View File

@ -1105,9 +1105,13 @@ void CalendarBox::keyPressEvent(QKeyEvent *e) {
jump(_previous.data());
} else if (e->key() == Qt::Key_End) {
jump(_next.data());
} else if (e->key() == Qt::Key_Left || e->key() == Qt::Key_Up) {
} else if (e->key() == Qt::Key_Left
|| e->key() == Qt::Key_Up
|| e->key() == Qt::Key_PageUp) {
goPreviousMonth();
} else if (e->key() == Qt::Key_Right || e->key() == Qt::Key_Down) {
} else if (e->key() == Qt::Key_Right
|| e->key() == Qt::Key_Down
|| e->key() == Qt::Key_PageDown) {
goNextMonth();
}
}