Open
Description
Dear Sirs,
I'm wondering if you ever considered the possibility to add a custom keyboard event i.e CTRL+R to answer instead of clicking on the green icon (and CTRL+R again while in call to hangup).
I'm trying to figure out how to add this but my knowledge is too limited, can you help to make this edits, I've cloned the repo and tried to add these lines ./linphone-desktop/Linphone/core/call/CallGui.cpp would it be the right place ?
void CallGui::handleAnswerShortcut() {
if (mCore && mCore->isInCall()) {
QMetaObject::invokeMethod(mCore.get(), "answerCall", Qt::QueuedConnection);
}
}
void CallGui::keyPressEvent(QKeyEvent *event) {
if (event->modifiers() == Qt::ControlModifier && event->key() == Qt::Key_R) { // CTRL + R to answer
handleAnswerShortcut();
}
else {
QWidget::keyPressEvent(event);
}
}
Metadata
Metadata
Assignees
Labels
No labels