Called when a window loses the keyboard focus.
This calls the canvas's edit's on-kill-focus or the canvas's pasteboard's on-kill-focus method.