Close hints when the cursor moves to a new hinting context
fix backspace key
small changes for code review
Merge pull request #3640 from dloverin/issue#3627

Close hints when the cursor moves to a new hinting context