window.py : Replace deprecated add_accelerator()

Use set_accels_for_action method instead.
3 jobs for patch-1 in 21 minutes and 51 seconds (queued for 3 seconds)