fix: Fix broken globalShortcuts.registerAll() on non-macOS platforms (#20963)
fix: Fix broken globalShortcuts.registerAll() on non-macOS platforms (#20963)

This was a regression in #16125, which unintentionally put
`GlobalShortcutListener::RegisterAccelerator` into a
`#if defined(OS_MACOSX)` block.

Notes: Fix broken `globalShortcut.registerAll()` on Windows and Linux
seanchas116/electron,gerhardberger/electron,electron/electron,gerhardberger/electron,seanchas116/electron,bpasero/electron,seanchas116/electron,bpasero/electron,gerhardberger/electron,electron/electron,seanchas116/electron,bpasero/electron,bpasero/electron,electron/electron,gerhardberger/electron,electron/electron,gerhardberger/electron,seanchas116/electron,electron/electron,gerhardberger/electron,bpasero/electron,seanchas116/electron,electron/electron,bpasero/electron,electron/electron,gerhardberger/electron,bpasero/electron