From: Jeremy Thurgood Date: Tue, 13 May 2014 17:55:51 +0000 (+0200) Subject: Perform selected action. X-Git-Tag: 0.1~332 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=800a800c45456f185c2e5445ed9caaa8a0ac5504;p=naja.git Perform selected action. --- diff --git a/naja/widgets/info_area.py b/naja/widgets/info_area.py index 2a4d06b..317dfc6 100644 --- a/naja/widgets/info_area.py +++ b/naja/widgets/info_area.py @@ -84,8 +84,8 @@ class InfoAreaWidget(Widget): if ev.type == pgl.KEYDOWN: if ev.key in (pgl.K_RETURN, pgl.K_KP_ENTER): self.state.gameboard.change_mode() - # FIXME: also need to signal the correct action - # here + self.card.actions[self.chosen].perform_action( + self.state.gameboard, self.card) InvalidateTheWorld.post() return True if ev.key in (pgl.K_UP, pgl.K_w):