Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
linphone-desktop
Commits
5c52ef22
Commit
5c52ef22
authored
5 months ago
by
Christophe Deschamps
Browse files
Options
Download
Patches
Plain Diff
Handle numeric keypad typing on keypad
parent
f80620f9
master
build/windows_runner_ok
feature/AEC3
feature/dp
feature/loading_spinner
feature/oidc_client_secret
feature/redirect_uri
feature/test_integ_sdk
feature/translation
fix/LINQT-1362
fix/LINQT-1482
fix/SLS-8
fix/all
fix/auth_popup
fix/conference_index_as_objects
fix/config_login_page
fix/contact_list
fix/contact_speed
fix/disable_chat_feature
fix/login_page_back_button
fix/qt6.8compil
fix/quit_conf_screensharing
fix/set_operator
fix/slow_ldap_loading
fix/ui
fix/ui_fixes
1 merge request
!1062
Handle numeric keypad typing on keypad
Pipeline
#83791
passed with stages
in 13 minutes and 56 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Linphone/view/Control/Input/NumericPad.qml
+65
-1
Linphone/view/Control/Input/NumericPad.qml
Linphone/view/Control/Popup/NumericPadPopup.qml
+4
-0
Linphone/view/Control/Popup/NumericPadPopup.qml
with
69 additions
and
1 deletion
Linphone/view/Control/Input/NumericPad.qml
+
65
−
1
View file @
5c52ef22
...
...
@@ -19,6 +19,71 @@ FocusScope{
signal
launchCall
()
signal
wipe
()
function
keypadKeyPressedAtIndex
(
index
)
{
var
button
=
numPadGrid
.
getButtonAt
(
index
)
button
.
shadowEnabled
=
true
button
.
clicked
()
removeButtonsShadow
.
restart
()
}
Timer
{
id
:
removeButtonsShadow
interval
:
250
repeat
:
false
onTriggered
:
{
for
(
var
i
=
0
;
i
<
12
;
i
++
)
{
numPadGrid
.
getButtonAt
(
i
).
shadowEnabled
=
false
}
}
}
Keys.onPressed
:
(
event
)
=>
{
if
(
event
.
modifiers
&
Qt
.
KeypadModifier
)
{
if
(
event
.
key
===
Qt
.
Key_0
)
{
keypadKeyPressedAtIndex
(
10
)
}
if
(
event
.
key
===
Qt
.
Key_1
)
{
keypadKeyPressedAtIndex
(
0
)
}
if
(
event
.
key
===
Qt
.
Key_2
)
{
keypadKeyPressedAtIndex
(
1
)
}
if
(
event
.
key
===
Qt
.
Key_3
)
{
keypadKeyPressedAtIndex
(
2
)
}
if
(
event
.
key
===
Qt
.
Key_4
)
{
keypadKeyPressedAtIndex
(
3
)
}
if
(
event
.
key
===
Qt
.
Key_5
)
{
keypadKeyPressedAtIndex
(
4
)
}
if
(
event
.
key
===
Qt
.
Key_6
)
{
keypadKeyPressedAtIndex
(
5
)
}
if
(
event
.
key
===
Qt
.
Key_7
)
{
keypadKeyPressedAtIndex
(
6
)
}
if
(
event
.
key
===
Qt
.
Key_8
)
{
keypadKeyPressedAtIndex
(
7
)
}
if
(
event
.
key
===
Qt
.
Key_9
)
{
keypadKeyPressedAtIndex
(
8
)
}
if
(
event
.
key
===
Qt
.
Key_Asterisk
)
{
keypadKeyPressedAtIndex
(
9
)
}
if
(
event
.
key
===
Qt
.
Key_Plus
)
{
mainItem
.
buttonPressed
(
"
+
"
)
}
if
(
event
.
key
===
Qt
.
Key_Enter
)
{
mainItem
.
launchCall
()
}
}
if
(
event
.
key
===
Qt
.
Key_Backspace
)
{
mainItem
.
wipe
()
}
}
Layout.GridLayout
{
id
:
numPadGrid
anchors.fill
:
parent
...
...
@@ -48,7 +113,6 @@ FocusScope{
required
property
int
index
implicitWidth
:
60
*
DefaultStyle
.
dp
implicitHeight
:
60
*
DefaultStyle
.
dp
focus
:
index
==
4
onClicked
:
{
mainItem
.
buttonPressed
(
innerText
.
text
)
}
...
...
This diff is collapsed.
Click to expand it.
Linphone/view/Control/Popup/NumericPadPopup.qml
+
4
−
0
View file @
5c52ef22
...
...
@@ -47,6 +47,10 @@ Control.Popup {
color
:
DefaultStyle
.
grey_100
visible
:
!
mainItem
.
roundedBottom
}
MouseArea
{
anchors.fill
:
parent
onClicked
:
numPad
.
forceActiveFocus
()
}
Button
{
id
:
closeButton
visible
:
mainItem
.
closeButtonVisible
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets