X-Git-Url: https://harishankar.org/repos/?p=getaclue.git;a=blobdiff_plain;f=player_mainwindow.py;fp=player_mainwindow.py;h=e167f039571f99f1196bbdf1b21dbd67a8b4cdf4;hp=8ffdb16c05ae8d142f80d29a92c9ded8af80b9a6;hb=ccfc49515acfe83e5cab9878d095de25024dab97;hpb=366da234706d16d54502d2a6501b43cfb29e9615 diff --git a/player_mainwindow.py b/player_mainwindow.py index 8ffdb16..e167f03 100644 --- a/player_mainwindow.py +++ b/player_mainwindow.py @@ -199,9 +199,6 @@ along with GetAClue. If not, see .""" # update the puzzle grid puzgrid = self.ui.get_object ("puzzlegrid") - # set focus to the puzzle grid - self.window.set_focus (puzgrid) - puzgrid.queue_draw () # callback for tree view "across" being activated @@ -324,9 +321,10 @@ along with GetAClue. If not, see .""" return False - # callback for puzzle grid key release event - def on_puzzlegrid_key_press_event (self, drawarea, event): + # callback for main window key release event + def on_mainwindow_key_press_event (self, window, event): if self.puzzle: + drawarea = self.ui.get_object ("puzzlegrid") key = gtk.gdk.keyval_name (event.keyval).lower () if event.state == gtk.gdk.SHIFT_MASK and key == "up":