forked from qt-creator/qt-creator
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 <thomas.hartmann@qt.io> Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
committed by
Henning Gründl
parent
9b2d6f5edd
commit
5aa3e573ce
@@ -141,7 +141,7 @@ FocusScope {
|
|||||||
root.submit(textInput.cursorPosition) // emit
|
root.submit(textInput.cursorPosition) // emit
|
||||||
}
|
}
|
||||||
|
|
||||||
Keys.onPressed: function (event) {
|
Keys.onReleased: function (event) {
|
||||||
if (event.key === Qt.Key_Backspace) {
|
if (event.key === Qt.Key_Backspace) {
|
||||||
if (textInput.text !== "")
|
if (textInput.text !== "")
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user