Skip to content

Commit

Permalink
memorize nonassigned state by unsetting panel reference
Browse files Browse the repository at this point in the history
  • Loading branch information
edeso committed Sep 22, 2022
1 parent d8955da commit 32430e8
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -316,7 +316,10 @@ public void activate(final LayerViewPanel panel) {

public void deactivate() {
super.deactivate();
panel.getWorkBenchFrame().removeEasyKeyListener(keyListener);
if (panel != null) {
panel.getWorkBenchFrame().removeEasyKeyListener(keyListener);
this.panel = null;
}
}

// same as below, just does not alter key assignments but represents pressed keys instead
Expand Down

0 comments on commit 32430e8

Please sign in to comment.