Handle altGr in early return from onKeyPress

Issue #2671
[vim] reselectSelection for visualBlock
Fix broken double-checking of display coverage

Both a potential infinite loop, due to updateDisplayIfNeeded not using
the updated set of visibile lines, and the fact that the current check
wasn't really covering changing document size, due to it happening before
the call to setDocumentHeight

Issue #2683
[vbscript mode] Fixed "Cannot read property 'substr' of null"

Error occurs when entering multiple dots