Added Page Up / Down keys to calendar box.
This commit is contained in:
parent
749f837df5
commit
46fb5ee1d2
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue