Remove quadruple click message selection

A tripple click is too easily detected as a quadruple when the user
actually did a triple.
This commit is contained in:
miruka 2019-09-12 20:17:43 -04:00
parent 7f29716a61
commit f6b2c59fdc
2 changed files with 6 additions and 16 deletions

View File

@ -96,11 +96,6 @@ TextEdit {
updateContainerSelectedTexts()
}
function selectAllTextPlus() {
// Unimplemented by default
container.clearSelection()
}
Connections {
target: container
@ -128,7 +123,6 @@ TextEdit {
onTapped: {
tapCount == 2 ? selectWordAt(eventPoint.position) :
tapCount == 3 ? selectAllText() :
tapCount == 4 ? selectAllTextPlus() :
container.clearSelection()
}
}

View File

@ -92,8 +92,12 @@ Row {
// horizontalAlignment: onRight ? Text.AlignRight : Text.AlignLeft
horizontalAlignment: Text.AlignLeft
function selectAllTextPlus() {
contentLabel.selectAllTextPlus()
function selectAllText() {
// select the sender name, body and date
container.clearSelection()
nameLabel.selectAll()
contentLabel.selectAll()
contentLabel.updateContainerSelectedTexts()
}
HoverHandler { id: nameHover }
@ -139,14 +143,6 @@ Row {
contentLabel.updateContainerSelectedTexts()
}
function selectAllTextPlus() {
// select the sender name, body and date
container.clearSelection()
nameLabel.selectAll()
contentLabel.selectAll()
contentLabel.updateContainerSelectedTexts()
}
HoverHandler { id: contentHover }
}