fixed search dialog alt+t behaviour
This commit is contained in:
parent
4f539660c9
commit
8a86dda3dc
@ -456,14 +456,12 @@ public class SearchDialog extends JDialog {
|
|||||||
getRootPane().getActionMap().put("focusContentText", new AbstractAction() {
|
getRootPane().getActionMap().put("focusContentText", new AbstractAction() {
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(java.awt.event.ActionEvent e) {
|
public void actionPerformed(java.awt.event.ActionEvent e) {
|
||||||
try {
|
|
||||||
// Toggle the content-search checkbox (on/off)
|
|
||||||
try {
|
try {
|
||||||
if (contentSearchCheckBox != null) {
|
if (contentSearchCheckBox != null) {
|
||||||
contentSearchCheckBox.setSelected(!contentSearchCheckBox.isSelected());
|
contentSearchCheckBox.doClick();
|
||||||
}
|
}
|
||||||
} catch (Exception ignore) {}
|
|
||||||
|
|
||||||
|
if (contentSearchCheckBox != null && contentSearchCheckBox.isSelected()) {
|
||||||
java.awt.Component ed = contentPatternCombo.getEditor().getEditorComponent();
|
java.awt.Component ed = contentPatternCombo.getEditor().getEditorComponent();
|
||||||
if (ed != null) {
|
if (ed != null) {
|
||||||
ed.requestFocusInWindow();
|
ed.requestFocusInWindow();
|
||||||
@ -471,6 +469,7 @@ public class SearchDialog extends JDialog {
|
|||||||
component.selectAll();
|
component.selectAll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} catch (Exception ignore) {}
|
} catch (Exception ignore) {}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user