Fix #1440 by moving shortcuts from the main window to the view