Remove Edit menu

This menu providers a few text editing related functions, like undo/redo, copy, paste, etc.
As far as I can tell, it never worked in a useful way, though: It operates on the activeFocusItem,
but as soon as one clicks on the menu, this becomes null. It is somewhat useable through shortcuts,
but the text fields have these shortcuts natively.
This commit is contained in:
Tobias Fella
2025-08-08 13:30:57 +02:00
committed by Joshua Goins
parent bf66118355
commit 0c727237ee
3 changed files with 1 additions and 91 deletions

View File

@@ -71,10 +71,7 @@ Labs.MenuBar {
onTriggered: Qt.quit()
}
}
EditMenu {
title: i18nc("menu", "Edit")
field: (root.activeFocusItem instanceof TextEdit || root.activeFocusItem instanceof TextInput) ? root.activeFocusItem : null
}
Labs.Menu {
title: i18nc("menu", "View")