mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Ignore Cmd+Up/Down if field isn't empty.
This commit is contained in:
parent
60e72768e1
commit
6aaf841a73
1 changed files with 2 additions and 2 deletions
|
@ -4561,7 +4561,7 @@ bool HistoryWidget::eventFilter(QObject *obj, QEvent *e) {
|
||||||
if (k->key() == Qt::Key_Up) {
|
if (k->key() == Qt::Key_Up) {
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
// Cmd + Up is used instead of Home.
|
// Cmd + Up is used instead of Home.
|
||||||
if (!_field->textCursor().atStart()) {
|
if (HasSendText(_field)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -4569,7 +4569,7 @@ bool HistoryWidget::eventFilter(QObject *obj, QEvent *e) {
|
||||||
} else if (k->key() == Qt::Key_Down) {
|
} else if (k->key() == Qt::Key_Down) {
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
// Cmd + Down is used instead of End.
|
// Cmd + Down is used instead of End.
|
||||||
if (!_field->textCursor().atEnd()) {
|
if (HasSendText(_field)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue