Does anyone have an idea about a fix for what I reported above?
getSelection doesn't have an easy way to check for the selection type (None, Text or Control) and that check is performed in various places in the editor source code.