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() {
|
||||
@Override
|
||||
public void actionPerformed(java.awt.event.ActionEvent e) {
|
||||
try {
|
||||
// Toggle the content-search checkbox (on/off)
|
||||
try {
|
||||
if (contentSearchCheckBox != null) {
|
||||
contentSearchCheckBox.setSelected(!contentSearchCheckBox.isSelected());
|
||||
contentSearchCheckBox.doClick();
|
||||
}
|
||||
} catch (Exception ignore) {}
|
||||
|
||||
if (contentSearchCheckBox != null && contentSearchCheckBox.isSelected()) {
|
||||
java.awt.Component ed = contentPatternCombo.getEditor().getEditorComponent();
|
||||
if (ed != null) {
|
||||
ed.requestFocusInWindow();
|
||||
@ -471,6 +469,7 @@ public class SearchDialog extends JDialog {
|
||||
component.selectAll();
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (Exception ignore) {}
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user