diff --git a/Toolset/palettes/inspector/editors/com.livecode.pi.customprops.behavior.livecodescript b/Toolset/palettes/inspector/editors/com.livecode.pi.customprops.behavior.livecodescript index eb9a46534b..d70d2517d5 100644 --- a/Toolset/palettes/inspector/editors/com.livecode.pi.customprops.behavior.livecodescript +++ b/Toolset/palettes/inspector/editors/com.livecode.pi.customprops.behavior.livecodescript @@ -69,7 +69,13 @@ on editorUpdate if the result is empty then put tKey into field "value" of me put item -1 of tPath into field "key" of me - select the text of field "key" of me + + if the long name of the target contains "widget" && quote & "array" & quote \ + && "of group" && quote & "customProperties" & quote && "of group" && quote \ + & "Custom Properties" & quote && "of group" && quote & "inspector" & quote \ + then + select the text of field "key" of me + end if else put empty into field "key" of me put empty into field "value" of me diff --git a/notes/bugfix-22285.md b/notes/bugfix-22285.md new file mode 100644 index 0000000000..490ac1280d --- /dev/null +++ b/notes/bugfix-22285.md @@ -0,0 +1 @@ +# Prevent PI custom props taking focus from SE