always show the edit menu when the cursor is visible

not super nice but needed functionality-wise, since i cannot trigger the
menu from CursorDelegate
This commit is contained in:
Marco Martin 2015-08-06 15:25:30 +02:00
parent ba69d19c63
commit d5b71611e2
2 changed files with 2 additions and 1 deletions

View File

@ -61,6 +61,7 @@ Item {
var pos = mapToItem(input, mouse.x, mouse.y);
input.cursorPosition = input.positionAt(pos.x, pos.y);
}
onPressAndHold: print("AAAAAA"+control.getMenuInstance())
}
}

View File

@ -126,7 +126,7 @@ Item {
id: popupTimer
interval: 1
onTriggered: {
if (((input.canPaste && mouseArea.pressed) || selectionStart !== selectionEnd) && control.activeFocus) {
if ((input.canPaste || selectionStart !== selectionEnd) && control.activeFocus) {
var startRect = input.positionToRectangle(input.selectionStart);
var endRect = input.positionToRectangle(input.selectionEnd);