diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-02-24 13:42:39 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:52:12 +0200 |
| commit | c32ea7248fbb2c895c5d41e86fa6efb89df5d721 (patch) | |
| tree | 9ef8deb8214b8545683e139873b6a4544497a076 | |
| parent | da12fbf5a19be6e8a438523506a489b87a37f96f (diff) | |
| download | muhqs-game-c32ea7248fbb2c895c5d41e86fa6efb89df5d721.tar.gz muhqs-game-c32ea7248fbb2c895c5d41e86fa6efb89df5d721.zip | |
allow to exit any prompt on esc
| -rw-r--r-- | go/client/game.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/go/client/game.go b/go/client/game.go index 00047d5d..37e44d77 100644 --- a/go/client/game.go +++ b/go/client/game.go @@ -532,7 +532,11 @@ func (g *Game) Update() error { g.hideStore() g.RemoveWidget(g.discardPileView) if g.prompt != nil { - g.prompt.ClearSelections() + if g.prompt.Action().Targets().NoSelections() { + g.removePrompt() + } else { + g.prompt.ClearSelections() + } } } |
