Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 7dd74e7

Browse files
Merge pull request #2134 from livecode/merge-release-9.6.0-19.05.2020
Merge release 9.6.0 19.05.2020
2 parents 75529a9 + 8a050f0 commit 7dd74e7

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Toolset/palettes/inspector/editors/com.livecode.pi.customprops.behavior.livecodescript

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
script "com.livecode.pi.customprops.behavior"
2-
local sPropSet, sHilitePath
2+
local sPropSet, sHilitePath, sReselect
33

44
on editorInitialize
55
put empty into sPropSet
6+
put false into sReselect
67
put the editorLabel of me into field "rowlabel" of me
78
set the rowShowLabel of me to false
89
set the label of button "customPropertySet" of group "Set buttons" of me to "customKeys"
@@ -69,7 +70,10 @@ on editorUpdate
6970
if the result is empty then
7071
put tKey into field "value" of me
7172
put item -1 of tPath into field "key" of me
72-
select the text of field "key" of me
73+
if sReselect then
74+
select the text of field "key" of me
75+
put false into sReselect
76+
end if
7377
else
7478
put empty into field "key" of me
7579
put empty into field "value" of me
@@ -371,6 +375,7 @@ function revValidSetName pWhich
371375
end revValidSetName
372376

373377
on hiliteChanged
378+
put true into sReselect
374379
checkRehilite
375380
editorUpdate
376381
put empty into sHilitePath

notes/bugfix-22285.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Only reselect key field in customprops editor in response to a change in hilite

0 commit comments

Comments
 (0)