Fixes #18674 - Don't hide selected text when adding a new inline comment