Fixed Escape shortcut for opened archived forums.
This commit is contained in:
parent
9276f3dab8
commit
c320917069
|
@ -1102,10 +1102,10 @@ void Widget::animationCallback() {
|
||||||
|
|
||||||
void Widget::escape() {
|
void Widget::escape() {
|
||||||
if (!cancelSearch()) {
|
if (!cancelSearch()) {
|
||||||
if (controller()->openedFolder().current()) {
|
if (controller()->openedForum().current()) {
|
||||||
controller()->closeFolder();
|
|
||||||
} else if (controller()->openedForum().current()) {
|
|
||||||
controller()->closeForum();
|
controller()->closeForum();
|
||||||
|
} else if (controller()->openedFolder().current()) {
|
||||||
|
controller()->closeFolder();
|
||||||
} else if (controller()->activeChatEntryCurrent().key) {
|
} else if (controller()->activeChatEntryCurrent().key) {
|
||||||
controller()->content()->dialogsCancelled();
|
controller()->content()->dialogsCancelled();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue