Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cardtable.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cardtable.py b/cardtable.py
index e6c839d..9f5bf34 100644
--- a/cardtable.py
+++ b/cardtable.py
@@ -190,6 +190,7 @@ class CardTable(gtk.EventBox):
self.selected_card = (coord[0], coord[1])
def key_press_event(self, widget, event):
+ self.grab_focus()
self.table.grab_focus()
x = self.selected_card[0]
y = self.selected_card[1]