Ticket #1651 (closed defect: fixed)

Opened 5 months ago

Last modified 4 months ago

Hotkey for CAS View not working

Reported by: johannes Owned by: george
Priority: medium Milestone: GeoGebra 4.2
Component: General Keywords: hotkey, CAS
Cc: Estimate (h): 0
Progress (%): 100

Description

If the CAS View hasn't been opened in the current session and the user tries to open it by pressing the hotkey (shift+cmd+K on Mac; ctrl+shift+K on Windows) a NullPointerException is thrown. If it is done by clicking on it in the menubar there is no problem.

Change History

comment:1 Changed 5 months ago by michael

  • Owner set to george
  • Status changed from new to assigned

(actually ClassCastException)

Problem is this test code being called (as Shift is down)

if (Application.getShiftDown()) {

if (tempPropPanel == null) {

tempPropPanel = new PropertiesPanel(app, new GeoGebraColorChooser(app),

false);

tempPropPanel.setMinimumSize(tempPropPanel.getPreferredSize());

}
if (app.selectedGeosSize() > 0)

tempPropPanel.updateSelection(app.getSelectedGeos().toArray());

return this.tempPropPanel;

}

comment:2 Changed 4 months ago by george

  • Status changed from assigned to closed
  • Progress (%) changed from 0 to 100
  • Resolution set to fixed

test code removed

Note: See TracTickets for help on using tickets.