mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
fix: go back on escape
This commit is contained in:
parent
2c6439eeb6
commit
2482da3c3f
1 changed files with 4 additions and 1 deletions
|
@ -938,7 +938,10 @@ TextForMimeData InnerWidget::getSelectedText() const
|
||||||
|
|
||||||
void InnerWidget::keyPressEvent(QKeyEvent *e)
|
void InnerWidget::keyPressEvent(QKeyEvent *e)
|
||||||
{
|
{
|
||||||
if (e == QKeySequence::Copy && _selectedItem != nullptr) {
|
if (e->key() == Qt::Key_Escape) {
|
||||||
|
_controller->showBackFromStack();
|
||||||
|
}
|
||||||
|
else if (e == QKeySequence::Copy && _selectedItem != nullptr) {
|
||||||
copySelectedText();
|
copySelectedText();
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
} else if (e->key() == Qt::Key_E && e->modifiers().testFlag(Qt::ControlModifier)) {
|
} else if (e->key() == Qt::Key_E && e->modifiers().testFlag(Qt::ControlModifier)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue