Ticket #277 (closed defect: invalid)

Opened 4 months ago

Last modified 4 months ago

Make Text>>getSelectionRange side-effect free

Reported by: fbo Owned by:
Priority: major Milestone:
Component: Text Keywords:
Cc:

Description

... and shorten the method if possible.

In Firefox, the new selectionString method is enabled. Placing the caret at the end of an editable text and typing causes new characters to be inserted BEFORE the last character in that text.

This among the five most annoying things I've seen in Lively. Cost me at least a day.

Once this is done, clean up Text>>selectionString so it does not use domSelection().toString() any more, which is meant for debugging, apparently.

Change History

comment:1 Changed 4 months ago by fbo

Still don't see it. Too weird. Call getSelectionRange in selectionString, and it breaks. Don't call it and it works. If you see anything that could have side effects on selection, ranges, ... please let me know.

comment:2 Changed 4 months ago by fbo

  • Status changed from new to closed
  • Resolution set to invalid
Note: See TracTickets for help on using tickets.