MATLAB: Do “EditText” and “ComboBoxes” in SimMechanics not accept bracket characters “[]” from a German keyboard

[{bracketcharcharsetcomboboxedittextgermankeyboardMATLAB

"EditText" and "ComboBoxes" do not accept bracket characters "[]" from a German keyboard. This prevents German charset users from directly entering key data such as inertia tensors, force vectors, etc. into the block dialogs.
The following shows the reproduction steps:
1. Type the following in the Command Window:
area = com.mathworks.mwt.MWTextArea
frame = com.mathworks.mwt.MWFrame;
panel = com.mathworks.mwt.MWPanel;
panel.add(area); frame.add(panel);
frame.setSize(300,300); frame.setVisible(true)
2. Using a German keyboard and a German locale, type AltGr+7. This should display an open brace "{".
AltGr+7 = open brace
AltGr+8 = open bracket
AltGr+9 = close brace
AltGr+0 = close bracket
A similar behavior also occurs in NNTOOL (Neural Network Toolbox).

Best Answer

This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
There is a bug in MATLAB 7.0 (R14) in the way that it handles German characters when using a German keyboard.
To work around this issue in MATLAB 7.0.1 (R14SP1), follow these steps:
1. Download the attached patch file.
2. Copy the file "patchmwt.zip" to
$MATLAB\java
(where $MATLAB is the MATLAB root directory on your machine, as returned by typing:
matlabroot
3. Run MATLAB
4. From the MATLAB command prompt, type:
cd([matlabroot '/java'])
unzip('patchmwt.zip')
5. Exit MATLAB
6. Restart MATLAB
7. After restarting MATLAB, run the following command at the MATLAB prompt:
rehash toolboxcache
If the steps were done correctly, you will have created the files in the following directory:
$MATLAB\java\patch\com\mathwork\mwt
When you restart MATLAB, you should be able to use the "AltGr" key combinations in the areas that previously did not work.
There are no workarounds for MATLAB 7.0 (R14).