Improved the use of the Cursor in the Text widget.