Conditionally change if a popup can be closed by pressing esc

FYI… that’s correct.