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:
parent
ba69d19c63
commit
d5b71611e2
@ -61,6 +61,7 @@ Item {
|
|||||||
var pos = mapToItem(input, mouse.x, mouse.y);
|
var pos = mapToItem(input, mouse.x, mouse.y);
|
||||||
input.cursorPosition = input.positionAt(pos.x, pos.y);
|
input.cursorPosition = input.positionAt(pos.x, pos.y);
|
||||||
}
|
}
|
||||||
|
onPressAndHold: print("AAAAAA"+control.getMenuInstance())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ Item {
|
|||||||
id: popupTimer
|
id: popupTimer
|
||||||
interval: 1
|
interval: 1
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
if (((input.canPaste && mouseArea.pressed) || selectionStart !== selectionEnd) && control.activeFocus) {
|
if ((input.canPaste || selectionStart !== selectionEnd) && control.activeFocus) {
|
||||||
var startRect = input.positionToRectangle(input.selectionStart);
|
var startRect = input.positionToRectangle(input.selectionStart);
|
||||||
var endRect = input.positionToRectangle(input.selectionEnd);
|
var endRect = input.positionToRectangle(input.selectionEnd);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user