mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-07 15:08:24 +00:00
Take account of return key on Numpad
This commit is contained in:
parent
9bd6021782
commit
be4398247b
6 changed files with 23 additions and 2 deletions
|
|
@ -70,6 +70,7 @@ Item {
|
|||
width: parent.width
|
||||
|
||||
// Workaround to supports empty string.
|
||||
Keys.onEnterPressed: editingFinished()
|
||||
Keys.onReturnPressed: editingFinished()
|
||||
onActiveFocusChanged: !activeFocus && editingFinished()
|
||||
|
||||
|
|
|
|||
|
|
@ -80,11 +80,18 @@ Item {
|
|||
readOnly: !searchBox.enabled
|
||||
width: parent.width
|
||||
|
||||
Keys.onEscapePressed: searchBox.closeMenu()
|
||||
Keys.onReturnPressed: {
|
||||
function enterButtonPressed(){
|
||||
searchBox.enterPressed()
|
||||
searchBox.closeMenu()
|
||||
}
|
||||
|
||||
Keys.onEscapePressed: searchBox.closeMenu()
|
||||
Keys.onEnterPressed: {
|
||||
enterButtonPressed()
|
||||
}
|
||||
Keys.onReturnPressed: {
|
||||
enterButtonPressed()
|
||||
}
|
||||
onActiveFocusChanged: {
|
||||
if (activeFocus && !_isOpen) {
|
||||
|
||||
|
|
|
|||
|
|
@ -97,6 +97,7 @@ Item {
|
|||
verticalAlignment: TextInput.AlignVCenter
|
||||
|
||||
Keys.onEscapePressed: focus = false
|
||||
Keys.onEnterPressed: focus = false
|
||||
Keys.onReturnPressed: focus = false
|
||||
|
||||
onEditingFinished: {
|
||||
|
|
|
|||
|
|
@ -172,6 +172,7 @@ DialogPlus {
|
|||
//: 'Give a subject' : Placeholder in a form about setting a subject
|
||||
placeholderText : qsTr('subjectPlaceholder')
|
||||
text:(chatRoomModel?chatRoomModel.getSubject():'')
|
||||
Keys.onEnterPressed: nextItemInFocusChain().forceActiveFocus()
|
||||
Keys.onReturnPressed: nextItemInFocusChain().forceActiveFocus()
|
||||
TooltipArea{
|
||||
//: 'Current subject of the Chat Room. It cannot be empty'
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ DialogPlus {
|
|||
placeholderText : (serverUrl.text?serverUrl.text:serverUrl.placeholderText)
|
||||
text:ldapData.displayName
|
||||
onTextChanged: ldapData.displayName = text
|
||||
Keys.onEnterPressed: nextItemInFocusChain().forceActiveFocus()
|
||||
Keys.onReturnPressed: nextItemInFocusChain().forceActiveFocus()
|
||||
TooltipArea{
|
||||
text : qsTr('displayNameTooltip')//'The display name of the server to be shown in the list'
|
||||
|
|
@ -76,6 +77,7 @@ DialogPlus {
|
|||
placeholderText :"Server"
|
||||
text:ldapData.server
|
||||
onTextChanged: ldapData.server = text
|
||||
Keys.onEnterPressed: nextItemInFocusChain().forceActiveFocus()
|
||||
Keys.onReturnPressed: nextItemInFocusChain().forceActiveFocus()
|
||||
error : ldapData.serverFieldError
|
||||
TooltipArea{
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@ DialogPlus {
|
|||
error: dialog._sipAddressOk ? '' : qsTr('invalidSipAddress')
|
||||
|
||||
onTextChanged: Logic.handleSipAddressChanged(text)
|
||||
Keys.onEnterPressed: nextItemInFocusChain().forceActiveFocus()
|
||||
Keys.onReturnPressed: nextItemInFocusChain().forceActiveFocus()
|
||||
}
|
||||
}
|
||||
|
|
@ -79,6 +80,7 @@ DialogPlus {
|
|||
error: dialog._serverAddressOk ? '' : qsTr('invalidServerAddress')
|
||||
onActiveFocusChanged: if(!activeFocus && dialog._serverAddressOk) Logic.handleTransportChanged(transport.model[transport.currentIndex])
|
||||
onTextChanged: Logic.handleServerAddressChanged(text)
|
||||
Keys.onEnterPressed: nextItemInFocusChain().forceActiveFocus()
|
||||
Keys.onReturnPressed: nextItemInFocusChain().forceActiveFocus()
|
||||
}
|
||||
}
|
||||
|
|
@ -90,6 +92,7 @@ DialogPlus {
|
|||
|
||||
NumericField {
|
||||
id: registrationDuration
|
||||
Keys.onEnterPressed: route.forceActiveFocus()
|
||||
Keys.onReturnPressed: route.forceActiveFocus()
|
||||
}
|
||||
}
|
||||
|
|
@ -120,6 +123,7 @@ DialogPlus {
|
|||
error: dialog._routeOk ? '' : qsTr('invalidRoute')
|
||||
|
||||
onTextChanged: Logic.handleRouteChanged(text)
|
||||
Keys.onEnterPressed: nextItemInFocusChain().forceActiveFocus()
|
||||
Keys.onReturnPressed: nextItemInFocusChain().forceActiveFocus()
|
||||
}
|
||||
}
|
||||
|
|
@ -136,6 +140,7 @@ DialogPlus {
|
|||
error: dialog._conferenceUriOk ? '' : qsTr("invalidConferenceURI")
|
||||
|
||||
onTextChanged: Logic.handleConferenceUriChanged(text)
|
||||
Keys.onEnterPressed: nextItemInFocusChain().forceActiveFocus()
|
||||
Keys.onReturnPressed: nextItemInFocusChain().forceActiveFocus()
|
||||
}
|
||||
}
|
||||
|
|
@ -147,6 +152,7 @@ DialogPlus {
|
|||
|
||||
TextField {
|
||||
id: contactParams
|
||||
Keys.onEnterPressed: nextItemInFocusChain().forceActiveFocus()
|
||||
Keys.onReturnPressed: nextItemInFocusChain().forceActiveFocus()
|
||||
}
|
||||
}
|
||||
|
|
@ -161,6 +167,7 @@ DialogPlus {
|
|||
|
||||
maxValue: 5
|
||||
minValue: 1
|
||||
Keys.onEnterPressed: focus=false
|
||||
Keys.onReturnPressed: focus=false
|
||||
}
|
||||
}
|
||||
|
|
@ -230,6 +237,7 @@ DialogPlus {
|
|||
placeholderText: 'stun.example.net'
|
||||
|
||||
readOnly: !iceEnabled.checked
|
||||
Keys.onEnterPressed: nextItemInFocusChain().forceActiveFocus()
|
||||
Keys.onReturnPressed: nextItemInFocusChain().forceActiveFocus()
|
||||
}
|
||||
}
|
||||
|
|
@ -255,6 +263,7 @@ DialogPlus {
|
|||
id: turnUser
|
||||
|
||||
readOnly: !turnEnabled.checked || !turnEnabled.enabled
|
||||
Keys.onEnterPressed: nextItemInFocusChain().forceActiveFocus()
|
||||
Keys.onReturnPressed: nextItemInFocusChain().forceActiveFocus()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue