umask

J. Landman Gay jacque at hyperactivesw.com
Mon Jan 24 14:23:21 EST 2011


On 1/21/11 1:00 PM, J. Landman Gay wrote:
> On 1/21/11 12:47 PM, Peter Brigham MD wrote:

>> I just double-checked: created a new mainstack, put a new field in it,
>> put some text into it, and put this in the field script:
>>
>> on selectionchanged
>> beep
>> end selectionchanged
>>
>> and when I click anywhere in the text to change the insertion point I
>> get a beep, but when I use the arrowkeys to move the insertion point I
>> get no beep, just a silent shift of the insertion point.

I finally checked on this, and you're right, selectionChanged isn't sent 
in an unlocked, non-list field. Instead, arrowkeys are treated as 
keypresses like any other character, so you need to trap key-related 
messages instead.

If the field is a list field, then arrowkeys do trigger selectionChanged.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list