mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Fixed Home and End keys in calendar box.
This commit is contained in:
parent
e11904e05b
commit
749f837df5
1 changed files with 2 additions and 2 deletions
|
@ -932,9 +932,9 @@ void CalendarBox::jump(QPointer<IconButton> button) {
|
||||||
_context->showMonth(_context->dateFromIndex(index));
|
_context->showMonth(_context->dateFromIndex(index));
|
||||||
setExactScroll();
|
setExactScroll();
|
||||||
};
|
};
|
||||||
if (_jumpButton == _previous.data() && _previousEnabled) {
|
if (button == _previous.data() && _previousEnabled) {
|
||||||
jumpToIndex(_context->minDayIndex());
|
jumpToIndex(_context->minDayIndex());
|
||||||
} else if (_jumpButton == _next.data() && _nextEnabled) {
|
} else if (button == _next.data() && _nextEnabled) {
|
||||||
jumpToIndex(_context->maxDayIndex());
|
jumpToIndex(_context->maxDayIndex());
|
||||||
}
|
}
|
||||||
_jumpButton = nullptr;
|
_jumpButton = nullptr;
|
||||||
|
|
Loading…
Add table
Reference in a new issue