From 3004603cd45f24c898c692fe905d4a473e5a5685 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 14 Sep 2014 10:10:23 +0530 Subject: [PATCH] Fix keyboard focus not going to cover grid after doing a search. Fixes #1369160 [post entering a search focus is on an element of the search result in default mode but on the search box in cover grid mode](https://bugs.launchpad.net/calibre/+bug/1369160) --- src/calibre/gui2/library/alternate_views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/library/alternate_views.py b/src/calibre/gui2/library/alternate_views.py index 9ce6862ae2..bff47d8635 100644 --- a/src/calibre/gui2/library/alternate_views.py +++ b/src/calibre/gui2/library/alternate_views.py @@ -948,6 +948,7 @@ class GridView(QListView): def restore_current_book_state(self, state): book_id = state + self.setFocus(Qt.OtherFocusReason) try: row = self.model().db.data.id_to_index(book_id) except (IndexError, ValueError, KeyError, TypeError, AttributeError):