diff --git a/gamecontrols.go b/gamecontrols.go index b458a9d..c39febc 100644 --- a/gamecontrols.go +++ b/gamecontrols.go @@ -229,6 +229,16 @@ func (c *GameControls) Handle(ctx ui.Context, event ui.Event) bool { c.game.Debug = !c.game.Debug ctx.Overlays().Toggle(fpsOverlayName) } + if e.Modifiers == ui.KeyModifierControl { + switch e.Key { + case ui.KeyL: + c.askUserBeforeLoad(ctx) + case ui.KeyN: + c.askUserBeforeNew(ctx) + case ui.KeyS: + c.askUserBeforeSave(ctx) + } + } } return false }