From 5aa3e573cedb98464f829a43212569b380466b27 Mon Sep 17 00:00:00 2001 From: Henning Gruendl Date: Fri, 15 Sep 2023 17:34:38 +0200 Subject: [PATCH] QmlDesigner: Fix empty literal remove Fix issue that literal token is not immediately when pressing backspace and text is empty. Change-Id: I7ba2401ad6adfa689f697188feb7b30a71d82eeb Reviewed-by: Thomas Hartmann Reviewed-by: Qt CI Patch Build Bot Reviewed-by: --- share/qtcreator/qmldesigner/connectionseditor/Pill.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/qtcreator/qmldesigner/connectionseditor/Pill.qml b/share/qtcreator/qmldesigner/connectionseditor/Pill.qml index 3e1a9bdcc3e..c067fb5b162 100644 --- a/share/qtcreator/qmldesigner/connectionseditor/Pill.qml +++ b/share/qtcreator/qmldesigner/connectionseditor/Pill.qml @@ -141,7 +141,7 @@ FocusScope { root.submit(textInput.cursorPosition) // emit } - Keys.onPressed: function (event) { + Keys.onReleased: function (event) { if (event.key === Qt.Key_Backspace) { if (textInput.text !== "") return