1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Change push to talk shortcut to CTRL+P

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-12-06 13:49:04 +01:00
parent 9a7548fe86
commit 324d075cfe
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -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();