fix logic for Ctrl+Return/Ctrl+Enter