LPS-39879 - Prevent closing Templates dialog on pressing Escape if Editor is opened