Improve shortcut behaviour on MacOS

Part of #8787.
3 jobs for alt in 2 minutes and 50 seconds
Status Job ID Name Coverage
  Test
passed #17237
run-appdata

00:00:04

passed #17236
run-tests

00:02:37

 
  Build
passed #17238
run-build

00:00:08