For #5068, when autoindenting, only insert a tab if the cursor doesn't move due to CodeMirror's indentation
Merge pull request #5815 from adobe/nj/issue-5068

When autoindenting, only insert a tab if the cursor doesn't move due to CodeMirror's indentation