From 68e351b7c810f5610b329c4d3b619f0cb014eadb Mon Sep 17 00:00:00 2001 From: nyakze Date: Sat, 3 Jul 2021 21:47:32 +0300 Subject: [PATCH] Attempt to fix not working commands Attempt to fix not working commands by using more conventional keys --- Telegram/SourceFiles/chat_helpers/bot_keyboard.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/chat_helpers/bot_keyboard.cpp b/Telegram/SourceFiles/chat_helpers/bot_keyboard.cpp index 4e5ec451e..1ea17e9fc 100644 --- a/Telegram/SourceFiles/chat_helpers/bot_keyboard.cpp +++ b/Telegram/SourceFiles/chat_helpers/bot_keyboard.cpp @@ -171,11 +171,11 @@ bool BotKeyboard::moderateKeyActivate(int key) { App::sendBotCommand(user, user, qsl("/pattern")); } else if (key == Qt::Key_4) { App::sendBotCommand(user, user, qsl("/abuse")); - } else if (key == Qt::Key_0 || key == Qt::Key_E) { + } else if (key == Qt::Key_0) { App::sendBotCommand(user, user, qsl("/undo")); - } else if (key == Qt::Key_Plus || key == Qt::Key_QuoteLeft) { + } else if (key == Qt::Key_7) { App::sendBotCommand(user, user, qsl("/next")); - } else if (key == Qt::Key_Period || key == Qt::Key_S) { + } else if (key == Qt::Key_8) { App::sendBotCommand(user, user, qsl("/stats")); } return true;