Skip to content

Commit df4d33a

Browse files
committedJan 12, 2020
Fixed mnemonics in send-to-add-dialog
1 parent 3133fb6 commit df4d33a

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed
 

‎burp-send-to-extension/src/main/java/net/bytebutcher/burpsendtoextension/gui/SendToAddDialog.form

+5-2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
<gridbag top="2" left="2" bottom="2" right="10" weightx="0.0" weighty="0.0"/>
3030
</constraints>
3131
<properties>
32+
<labelFor value="ab56a"/>
3233
<text value="&amp;Name:"/>
3334
</properties>
3435
</component>
@@ -38,7 +39,8 @@
3839
<gridbag top="2" left="2" bottom="2" right="10" weightx="0.0" weighty="0.0"/>
3940
</constraints>
4041
<properties>
41-
<text value="&amp;Command:"/>
42+
<labelFor value="476e7"/>
43+
<text value="Co&amp;mmand:"/>
4244
</properties>
4345
</component>
4446
<grid id="5d0aa" layout-manager="GridLayoutManager" row-count="1" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
@@ -76,6 +78,7 @@
7678
<gridbag top="2" left="2" bottom="2" right="10" weightx="0.0" weighty="0.0"/>
7779
</constraints>
7880
<properties>
81+
<labelFor value="532e8"/>
7982
<text value="&amp;Group:"/>
8083
</properties>
8184
</component>
@@ -85,7 +88,7 @@
8588
<gridbag weightx="0.0" weighty="0.0"/>
8689
</constraints>
8790
<properties>
88-
<text value="&amp;Run in terminal"/>
91+
<text value="Run in &amp;terminal"/>
8992
</properties>
9093
</component>
9194
<component id="579d8" class="javax.swing.JRadioButton" binding="chkOutputShouldReplaceSelection">

‎burp-send-to-extension/src/main/java/net/bytebutcher/burpsendtoextension/gui/SendToAddDialog.java

+7-4
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ public CommandObject getCommandObject() {
205205
panel1.add(label2, gbc);
206206
final JLabel label3 = new JLabel();
207207
label3.setText("Command:");
208-
label3.setDisplayedMnemonic('C');
209-
label3.setDisplayedMnemonicIndex(0);
208+
label3.setDisplayedMnemonic('M');
209+
label3.setDisplayedMnemonicIndex(2);
210210
gbc = new GridBagConstraints();
211211
gbc.gridx = 0;
212212
gbc.gridy = 1;
@@ -238,8 +238,8 @@ public CommandObject getCommandObject() {
238238
panel1.add(label4, gbc);
239239
chkRunInTerminal = new JRadioButton();
240240
chkRunInTerminal.setText("Run in terminal");
241-
chkRunInTerminal.setMnemonic('R');
242-
chkRunInTerminal.setDisplayedMnemonicIndex(0);
241+
chkRunInTerminal.setMnemonic('T');
242+
chkRunInTerminal.setDisplayedMnemonicIndex(7);
243243
gbc = new GridBagConstraints();
244244
gbc.gridx = 1;
245245
gbc.gridy = 4;
@@ -308,6 +308,9 @@ public CommandObject getCommandObject() {
308308
panel3.add(btnOk, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
309309
final Spacer spacer1 = new Spacer();
310310
panel3.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));
311+
label2.setLabelFor(txtName);
312+
label3.setLabelFor(txtCommand);
313+
label4.setLabelFor(txtGroup);
311314
ButtonGroup buttonGroup;
312315
buttonGroup = new ButtonGroup();
313316
buttonGroup.add(chkRunInTerminal);

0 commit comments

Comments
 (0)