op and mode functions silently ignore when window is undefined
op and mode functions silently ignore when window is undefined

This typically happens when the user closes an application's window,
but the operating system does not select a new window to be the
current window.

karrick/slate-config