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

Commit e39d852

Browse files
committed
[[ Bug 19504 ]] Allow tab in text property of PI
1 parent 8f2dee9 commit e39d852

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ on editorInitialize
66

77
set the itemdelimiter to "."
88
put item -1 of the editorProperty["editor"] of me into sTextType
9+
10+
local tText, tOptions
11+
put the editorOptions of me into tOptions
12+
set the itemdelimiter to "|"
13+
repeat for each line tLine in tOptions
14+
local tProperty,tValue
15+
put item 1 of tLine into tProperty
16+
put item 2 of tLine into tValue
17+
set the tProperty of field 1 of me to tValue
18+
end repeat
919
end editorInitialize
1020

1121
on editorUpdate

Toolset/resources/supporting_files/property_definitions/propertyInfo.tsv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ styledText Contents Contents com.livecode.pi.styledText true false no_default
177177
systemWindow Float above everything Basic com.livecode.pi.boolean true false false
178178
tabGroupBehavior Contents focus with keyboard Basic com.livecode.pi.boolean true false false
179179
tabStops Tab stops Table com.livecode.pi.string true false
180-
text Text Basic com.livecode.pi.text false false
180+
text Text Basic com.livecode.pi.text false false tabStops|15
181181
textAlign Text align Text com.livecode.pi.textalign true false
182182
textFont Font Text com.livecode.pi.font true false
183183
textHeight Text height Text com.livecode.pi.integer true false 4 1

notes/bugfix-19504.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Allow entry of tabs into the text property field of the property inspector

0 commit comments

Comments
 (0)