Better handling of paste event
Better handling og cursor position changes in :input