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 | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode