Fix "key details" button after switching between panes.