mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fixed handle of last message on Up arrow in sections on macOS.
This commit is contained in:
parent
6f80811ecd
commit
221ded6d54
1 changed files with 3 additions and 1 deletions
|
@ -1086,7 +1086,9 @@ void ComposeControls::initKeyHandler() {
|
|||
auto keyEvent = static_cast<QKeyEvent*>(e.get());
|
||||
const auto key = keyEvent->key();
|
||||
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) {
|
||||
_attachRequests.fire({});
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue