2
votes

Maybe some of you can help me... I'm using Delphi Seattle, on Windows 10, Portuguese keyboard layout (tried with English layout too), and on the Code tab (Design tab works perfectly), when I try to type: "]", this key only, it appears "["... No other keys have any problem, only this one. Any idea about what could be my issue?

Sorry if this website is not for this kind of discussion, but where I can ask this?

2

2 Answers

1
votes

Try changing the Use Ctrl+Alt keys editor setting in IDE options

Editor Options

If I disable that option I can only enter ] but can't enter [ if I'm holding Ctrl+Alt keys. But I can enter both [ and ] if I'm holding AltGr key instead.

When specific option is enabled I it works both ways.

EDIT: In previous versions of Delphi like Delphi 7 for instance you had to make suitable registry change in order to change this.

EDIT2: As you already figured out by yourself the IDE enhancements modules can also interfere.

3
votes

Same problem here.
To workaround I do this:.
Go to Tools|Options|Editor|Key Mappings|Enhanced Modules and uncheck "Smart Surround Keys" option.
When unchecked you will lost automatic open/close parentesis/brackets()[] in marked text, but resolv this issue.