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

Commit 27a3e27

Browse files
Merge pull request #2026 from livecode/bugfix-21802
[21802] Ensure textChanged is sent when cutting text of a field
2 parents a90d9a5 + f2d93cf commit 27a3e27

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Toolset/libraries/revidelibrary.8.livecodescript

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8095,21 +8095,26 @@ on revIDECut
80958095
end if
80968096

80978097
lock screen
8098-
lock messages
8098+
80998099
if the selectedImage is not empty then
81008100
# If the there is a selection in an image using the image selection tool
81018101
# Then make sure no text is selected before doing the cut
8102-
if the selectedText is not empty then select empty
8102+
if the selectedText is not empty then
8103+
lock messages
8104+
select empty
8105+
unlock messages
8106+
end if
81038107
set the defaultStack to revTargetStack(the long id of the selectedImage)
81048108
cut
8109+
unlock screen
81058110
exit revIDECut
81068111
end if
81078112

81088113
# Ensure the user is aware of the consequences of the cut wrt groups
81098114
if revCheckGroupDelete() then
81108115
cut
81118116
end if
8112-
unlock messages
8117+
81138118
unlock screen
81148119

81158120
ideMessageSend "ideSelectedObjectChanged"

notes/bugfix-21802.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ensure textChanged msg is sent when we cut text of a field

0 commit comments

Comments
 (0)