mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-19 18:05:37 +00:00
Moved Enter key press handle from HistoryInner to HistoryWidget.
This commit is contained in:
parent
75ff3c3d28
commit
0721b80555
@ -1481,10 +1481,6 @@ void HistoryInner::keyPressEvent(QKeyEvent *e) {
|
||||
if (!_selected.isEmpty() && selectedForDelete == selectedForForward) {
|
||||
_widget->onDeleteSelected();
|
||||
}
|
||||
} else if (e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter) {
|
||||
if (_selected.isEmpty()) {
|
||||
_widget->onListEnterPressed();
|
||||
}
|
||||
} else {
|
||||
e->ignore();
|
||||
}
|
||||
@ -7216,6 +7212,8 @@ void HistoryWidget::keyPressEvent(QKeyEvent *e) {
|
||||
}
|
||||
_scroll.keyPressEvent(e);
|
||||
}
|
||||
} else if (e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter) {
|
||||
onListEnterPressed();
|
||||
} else {
|
||||
e->ignore();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user