Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
script "com.livecode.pi.customprops.behavior"
local sPropSet, sHilitePath
local sPropSet, sHilitePath, sReselect

on editorInitialize
put empty into sPropSet
put false into sReselect
put the editorLabel of me into field "rowlabel" of me
set the rowShowLabel of me to false
set the label of button "customPropertySet" of group "Set buttons" of me to "customKeys"
Expand Down Expand Up @@ -69,7 +70,10 @@ 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 sReselect then
select the text of field "key" of me
put false into sReselect
end if
else
put empty into field "key" of me
put empty into field "value" of me
Expand Down Expand Up @@ -371,6 +375,7 @@ function revValidSetName pWhich
end revValidSetName

on hiliteChanged
put true into sReselect
checkRehilite
editorUpdate
put empty into sHilitePath
Expand Down
1 change: 1 addition & 0 deletions notes/bugfix-22285.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Only reselect key field in customprops editor in response to a change in hilite