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

Commit a3bdbaf

Browse files
Merge pull request #1991 from bwmilby/bwm-bugfix-21503
[[ Bug 21514 ]] Automatically select text of fields in PI
2 parents 018b6af + 2a73480 commit a3bdbaf

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Toolset/palettes/inspector/behaviors/revinspectoreditorbehavior.livecodescript

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,4 +301,8 @@ end editorExpandVertical
301301

302302
getProp editorExpandVertical
303303
return sExpandVertical
304-
end editorExpandVertical
304+
end editorExpandVertical
305+
306+
after openField
307+
select the text of the target
308+
end openField

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ on editorUpdate
6969
if the result is empty then
7070
put tKey into field "value" of me
7171
put item -1 of tPath into field "key" of me
72+
select the text of field "key" of me
7273
else
7374
put empty into field "key" of me
7475
put empty into field "value" of me

notes/bugfix-21514.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Automatically select text of fields in PI

0 commit comments

Comments
 (0)