Skip to content
Snippets Groups Projects
Commit 8e41d346 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

callstackview: send DTMF via physical keyboard

Change-Id: I185945c8202edc31fab9bc9c440281c7325896bf
GitLab: #19
parent e86538fa
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,12 @@ Rectangle {
id: callStackViewWindow
property bool isAudioOnly: false
property var sipKeys: [
"1", "2", "3", "A",
"4", "5", "6", "B",
"7", "8", "9", "C",
"*", "0", "#", "D"
]
enum StackNumber {
InitialPageStack,
......@@ -46,6 +52,18 @@ Rectangle {
onActivatedAmbiguously: CallAdapter.hangUpThisCall()
}
Keys.onPressed: {
if (LRCInstance.currentAccountType !== Profile.Type.SIP)
return
print(event.text)
var key = event.text.toUpperCase()
if(sipKeys.find(function (item) {
return item === key
})) {
CallAdapter.sipInputPanelPlayDTMF(key)
}
}
// When selected conversation is changed,
// these values will also be changed.
property string responsibleConvUid: ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment