From 800a800c45456f185c2e5445ed9caaa8a0ac5504 Mon Sep 17 00:00:00 2001 From: Jeremy Thurgood Date: Tue, 13 May 2014 19:55:51 +0200 Subject: [PATCH] Perform selected action. --- naja/widgets/info_area.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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): -- 2.34.1