hzzz 8 years ago
parent
commit
3f29a1be5a
  1. 5
      designer/src/com/fr/grid/GridKeyListener.java

5
designer/src/com/fr/grid/GridKeyListener.java

@ -70,8 +70,9 @@ public class GridKeyListener implements KeyListener {
}
// Richie:Ctrl + A全选单元格
case KeyEvent.VK_A:
if ((OperatingSystem.isWindows() && evt.isControlDown())
|| OperatingSystem.isMacOS() && evt.isMetaDown()) {
boolean macOS = OperatingSystem.isMacOS() && evt.isMetaDown();
boolean windows = OperatingSystem.isWindows() && evt.isControlDown();
if (macOS || windows) {
reportPane.setSelection(new CellSelection(0, 0, report.getColumnCount(), report.getRowCount()));
isNeedRepaint = true;
}

Loading…
Cancel
Save