mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Added shortcut to open dialog for attachements.
This commit is contained in:
parent
4169927d83
commit
e966213ff8
1 changed files with 2 additions and 0 deletions
|
@ -5351,6 +5351,8 @@ void HistoryWidget::keyPressEvent(QKeyEvent *e) {
|
||||||
}
|
}
|
||||||
} else if (e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter) {
|
} else if (e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter) {
|
||||||
onListEnterPressed();
|
onListEnterPressed();
|
||||||
|
} else if (e->key() == Qt::Key_O && e->modifiers() == Qt::ControlModifier) {
|
||||||
|
chooseAttach();
|
||||||
} else {
|
} else {
|
||||||
e->ignore();
|
e->ignore();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue