Skip to content

Commit

Permalink
[openrocket#1549] Allow ctr/cmd + A command for sim table
Browse files Browse the repository at this point in the history
  • Loading branch information
SiboVG committed Jul 22, 2022
1 parent 9b6f4bd commit 97a891a
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions swing/src/net/sf/openrocket/gui/main/SimulationPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import java.util.Comparator;

import javax.swing.AbstractAction;
import javax.swing.InputMap;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComponent;
Expand All @@ -31,6 +32,7 @@
import javax.swing.KeyStroke;
import javax.swing.ListSelectionModel;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
import javax.swing.table.DefaultTableCellRenderer;
Expand Down Expand Up @@ -433,16 +435,7 @@ public int getRowCount() {
// Override processKeyBinding so that the JTable does not catch
// key bindings used in menu accelerators
simulationTable = new ColumnTable(simulationTableModel) {

private static final long serialVersionUID = -5799340181229735630L;

@Override
protected boolean processKeyBinding(KeyStroke ks,
KeyEvent e,
int condition,
boolean pressed) {
return false;
}
};
ColumnTableRowSorter simulationTableSorter = new ColumnTableRowSorter(simulationTableModel);
simulationTable.setRowSorter(simulationTableSorter);
Expand Down

0 comments on commit 97a891a

Please sign in to comment.