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:
parent
9a7548fe86
commit
324d075cfe
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user