Restore focus to window content when closing calculator
(also works for uncollapsible calculator to quickly jump between calculator an another input using calculator access key and escape key)

some code simplifications