Skip to content

Commit

Permalink
plugins/s57/S57Chart: Adding close dialog with escape stroke.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulosousadias committed Jan 12, 2025
1 parent e831ea3 commit d57eb46
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
import pt.lsts.neptus.renderer2d.StateRenderer2D;
import pt.lsts.neptus.renderer2d.tiles.MapPainterProvider;
import pt.lsts.neptus.types.coord.LocationType;
import pt.lsts.neptus.util.GuiUtils;
import pt.lsts.neptus.util.conf.ConfigFetch;
import pt.lsts.neptus.util.coord.MapTileUtil;
import pt.lsts.s57.S57;
Expand Down Expand Up @@ -124,6 +125,7 @@ public void dispose() {
painterList.put(renderer, NeptusS57Painter.forge(s57, mc));
}

GuiUtils.reactEscapeKeyPress(dialog);
return dialog;
}

Expand Down

0 comments on commit d57eb46

Please sign in to comment.