mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 06:55:58 +00:00
Fixed handle of last message on Up arrow in sections on macOS.
This commit is contained in:
@@ -1086,7 +1086,9 @@ void ComposeControls::initKeyHandler() {
|
|||||||
auto keyEvent = static_cast<QKeyEvent*>(e.get());
|
auto keyEvent = static_cast<QKeyEvent*>(e.get());
|
||||||
const auto key = keyEvent->key();
|
const auto key = keyEvent->key();
|
||||||
const auto isCtrl = keyEvent->modifiers() == Qt::ControlModifier;
|
const auto isCtrl = keyEvent->modifiers() == Qt::ControlModifier;
|
||||||
const auto hasModifiers = keyEvent->modifiers() != Qt::NoModifier;
|
const auto hasModifiers = (Qt::NoModifier !=
|
||||||
|
(keyEvent->modifiers()
|
||||||
|
& ~(Qt::KeypadModifier | Qt::GroupSwitchModifier)));
|
||||||
if (key == Qt::Key_O && isCtrl) {
|
if (key == Qt::Key_O && isCtrl) {
|
||||||
_attachRequests.fire({});
|
_attachRequests.fire({});
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user