The string is found from a caret position. The string inputted in the past is memorized.
Only the range is found when there is a selection.
A capital letter/small letter is distinguished.
The direction to find is selected. When there is a selection, it finds to the direction specified from the head or the last.