finding hte position in the field when backspaceKey hit

Devin Asay devin_asay at byu.edu
Mon Jun 10 14:49:09 EDT 2013


On Jun 10, 2013, at 12:43 PM, Dr. Hawkins wrote:

> 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 dictionary.

Richard,

Did you try the selectedChunk?

Devin

Devin Asay
Office of Digital Humanities
Brigham Young University





More information about the use-livecode mailing list