From 324d075cfe2960ff75b8a312c66de37143bdd949 Mon Sep 17 00:00:00 2001 From: "Tux3 / Mlkj / !Lev.uXFMLA" Date: Sat, 6 Dec 2014 13:49:04 +0100 Subject: [PATCH] Change push to talk shortcut to CTRL+P --- src/widget/form/groupchatform.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/widget/form/groupchatform.cpp b/src/widget/form/groupchatform.cpp index cbb41df6b..b14db2fb5 100644 --- a/src/widget/form/groupchatform.cpp +++ b/src/widget/form/groupchatform.cpp @@ -212,8 +212,8 @@ void GroupChatForm::keyPressEvent(QKeyEvent* ev) if (msgEdit->hasFocus()) return; - // Push to talk - if (ev->key() == Qt::Key_P && inCall) + // Push to talk (CTRL+P) + if (ev->key() == Qt::Key_P && (ev->modifiers() & Qt::ControlModifier) && inCall) { Core* core = Core::getInstance(); if (!core->isGroupCallMicEnabled(group->getGroupId())) @@ -231,7 +231,7 @@ void GroupChatForm::keyReleaseEvent(QKeyEvent* ev) if (msgEdit->hasFocus()) return; - // Push to talk + // Push to talk (CTRL+P (only need to release P)) if (ev->key() == Qt::Key_P && inCall) { Core* core = Core::getInstance();