ensure that we avoid enter, shift + enter insertion behaviour when popup showing