I have just started using Ubuntu 22.04.1 LTS while following a coding course and cannot find how to type neither square brackets or curly braces with the usual key combinations for a Spanish keyboard layout. I have been a Windows user for many years, but just got started with Ubuntu not long ago and still getting used to all the little differences.
When I press the usual key combinations, which are Left Ctrl + Left Alt + one of the pink tinted keys in the Spanish keyboard layout image linked below, nothing happens.
Spanish keabord layout
I have checked and made sure that the correct Spanish layout is setup in the system settings and tried all the other Spanish options just in case, but none of them have solved the issue.
My current keyboard layout is this.
After much searching without any luck, this post made me think it may be that some other setting is interfering and preventing the key combinations I need from working as expected, but I have tried following what is indicated in it and it hasn't solved the problem. Also, Left Ctrl + Left Alt + T works fine for opening a terminal window, so maybe it is not that at all.
I have found a way to type the needed characters by pressing Right Alt (which is Alt Gr on a Spanish keyboard) + one of the needed keys, but it is a very uncomfortable way to achieve it (need to move my left hand over to the right for having both hands on one side of the keyboard) and I'm sure there must be a better solution that escapes me.
Hope someone can lend a hand. Thank you!