This happens so rarely, that it makes the UX impact to the every day user not worth it in my opinion.
Maybe an auto-updater will do this, and if it happened with any frequency I might disable those autoupdates and try a macro-based (e.g. Keyboard Maestro) solution.
It's infuriating.