select text of me (field) not working?
Posted: Fri Jan 02, 2015 4:50 pm
I have new stack with only 1 field with script from copied from dictionary:
After click on the field the text blinks for a moment as selected and loosing selection immediately.
What is strange, when coming back from another stack field is focused for a moment, then out of focus but text is selected.
With this script in the field it works as expected:
Is it a bug?
Yosemite & LC 7.0.1
Marek
Code: Select all
on openField
select text of the target
-- This is not working also:
-- select text of me
-- select char 1 to -1 of the target
end openField
What is strange, when coming back from another stack field is focused for a moment, then out of focus but text is selected.
With this script in the field it works as expected:
Code: Select all
on openField
send "selectText" to me in 1 tick
end openField
on selecttext
select text of me
end selectText
Yosemite & LC 7.0.1
Marek