mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Close stories on Key_Right press on last one.
This commit is contained in:
parent
0f2e8d9a79
commit
6098e5ac33
1 changed files with 3 additions and 1 deletions
|
@ -5045,7 +5045,9 @@ void OverlayWidget::handleKeyPress(not_null<QKeyEvent*> e) {
|
||||||
if (_controlsHideTimer.isActive()) {
|
if (_controlsHideTimer.isActive()) {
|
||||||
activateControls();
|
activateControls();
|
||||||
}
|
}
|
||||||
moveToNext(1);
|
if (!moveToNext(1) && _stories) {
|
||||||
|
storiesClose();
|
||||||
|
}
|
||||||
} else if (ctrl) {
|
} else if (ctrl) {
|
||||||
if (key == Qt::Key_Plus
|
if (key == Qt::Key_Plus
|
||||||
|| key == Qt::Key_Equal
|
|| key == Qt::Key_Equal
|
||||||
|
|
Loading…
Add table
Reference in a new issue