[GraphEditor] Fix injections into signal handlers with JS functions

This commit is contained in:
Candice Bentéjac 2024-12-26 15:44:11 +01:00
parent faff99f963
commit cb301b2aaa
3 changed files with 6 additions and 6 deletions

View file

@ -118,7 +118,7 @@ Item {
ToolTip.text: "Execute Script"
onClicked: {
processScript()
root.processScript()
}
}
@ -285,9 +285,9 @@ Item {
root.forceActiveFocus()
}
Keys.onPressed: {
Keys.onPressed: function(event) {
if ((event.key === Qt.Key_Enter || event.key === Qt.Key_Return) && event.modifiers === Qt.ControlModifier) {
processScript()
root.processScript()
}
}
}