UK Keyboard layout for pound / hash key causes problems

If you’re using a UK keyboard on a Mac, the AltL-3 is how you would create the # symbol (Needed frequently for commenting out a line). On a US keyboard AltL-3 outputs the £ symbol. And presumably US users are accustomed to using Shift-3 instead. On a UK keyboard Shift-3 outputs the ‘£’ symbol.

It appears there’s some kind of inbuilt feature of Cursor (doesn’t happen in VSCode) that opens up a file in the editor window. I’ve searched through all the keybindings in settings and the keybindings.json file but there’s no entry. I’ve also done Ctrl-Shift-P to Developer: Toggle Keyboard Shortcuts Troubleshooting. This is the output that I get:

2024-09-04 15:33:51.025 [info] [KeybindingService]: / Soft dispatching keyboard event
2024-09-04 15:33:51.027 [info] [KeybindingService]: \ Keyboard event cannot be dispatched
2024-09-04 15:33:51.027 [info] [KeybindingService]: / Received  keydown event - modifiers: [alt], code: AltLeft, keyCode: 18, key: Alt
2024-09-04 15:33:51.027 [info] [KeybindingService]: | Converted keydown event - modifiers: [alt], code: AltLeft, keyCode: 6 ('Alt')
2024-09-04 15:33:51.027 [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
2024-09-04 15:33:51.288 [info] [KeybindingService]: / Soft dispatching keyboard event
2024-09-04 15:33:51.289 [info] [KeybindingService]: | Resolving alt+[Digit3]
2024-09-04 15:33:51.289 [info] [KeybindingService]: \ No keybinding entries.
2024-09-04 15:33:51.454 [info] [KeybindingService]: + Ignoring single modifier alt due to it being pressed together with other keys.

It’s showing “No keybinding entries” - so I assume it’s an inbuilt feature.

As an interim solution I’ve changed my Mac system settings to use a US keyboard layout so that Shift-3 creates a ‘#’ symbol but that’s not a good long term solution.

Any help gladly appreciated.

Cheers!