finding hte position in the field when backspaceKey hit

Dr. Hawkins dochawk at gmail.com
Mon Jun 10 14:43:16 EDT 2013


I'm handling backspaceKey (and others) in a combobox. by the time it is
hit, another field will be displayed nearby.

After the handler, in which the label is reset (I need the label changed
for handling before giving up control, so I can't pass the message to get
it done), the cursor is placed at the beginning, rather than the end, of
the combobox.

I could assume that the last character was deleted, but is there a way to
store the cursor position in the field, so that I can move it to one
before?  It seems to me that it should be a selectedSomething, or (to my
thinking) a cursor property, but I can't find anything in the ictionary.

-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462



More information about the use-livecode mailing list