figured out method for getting the character offset when using the mouse to move insertion point