fixed search dialog alt+t behaviour
This commit is contained in:
parent
4f539660c9
commit
8a86dda3dc
@ -457,18 +457,17 @@ public class SearchDialog extends JDialog {
|
||||
@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());
|
||||
}
|
||||
} catch (Exception ignore) {}
|
||||
if (contentSearchCheckBox != null) {
|
||||
contentSearchCheckBox.doClick();
|
||||
}
|
||||
|
||||
java.awt.Component ed = contentPatternCombo.getEditor().getEditorComponent();
|
||||
if (ed != null) {
|
||||
ed.requestFocusInWindow();
|
||||
if (ed instanceof javax.swing.text.JTextComponent component) {
|
||||
component.selectAll();
|
||||
if (contentSearchCheckBox != null && contentSearchCheckBox.isSelected()) {
|
||||
java.awt.Component ed = contentPatternCombo.getEditor().getEditorComponent();
|
||||
if (ed != null) {
|
||||
ed.requestFocusInWindow();
|
||||
if (ed instanceof javax.swing.text.JTextComponent component) {
|
||||
component.selectAll();
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (Exception ignore) {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user