mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Revert number keys check
This commit is contained in:
parent
23bd76a8dd
commit
d8ffc114d3
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ void BotKeyboard::leaveEventHook(QEvent *e) {
|
|||
bool BotKeyboard::moderateKeyActivate(int key) {
|
||||
if (const auto item = _session->data().message(_wasForMsgId)) {
|
||||
if (const auto markup = item->Get<HistoryMessageReplyMarkup>()) {
|
||||
if (key >= Qt::Key_1 && key <= Qt::Key_9) {
|
||||
if (key >= Qt::Key_1 && key <= Qt::Key_2) {
|
||||
const auto index = int(key - Qt::Key_1);
|
||||
if (!markup->rows.empty()
|
||||
&& index >= 0
|
||||
|
|
Loading…
Add table
Reference in a new issue