fix lost refresh in inputdialog enter callback
fix cannot highlight text with only one word in the first line
check position nullity in getTextFromBoxes
Merge pull request #351 from chrox/master

fix lost refresh in inputdialog enter callback