From 28b2f8fe03ce51596951280e26bb1776c17da706 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 16 Apr 2014 01:43:33 +0900 Subject: [PATCH] allow main webview to focus, which may fix shortcut issues some users reported plugins that define reviewer shortcuts broke --- aqt/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/main.py b/aqt/main.py index 19716ea98..19ab5ea81 100644 --- a/aqt/main.py +++ b/aqt/main.py @@ -512,7 +512,7 @@ title="%s">%s''' % ( self.toolbar = aqt.toolbar.Toolbar(self, tweb) self.toolbar.draw() # main area - self.web = aqt.webview.AnkiWebView(canCopy=True) + self.web = aqt.webview.AnkiWebView(canFocus=True) self.web.setObjectName("mainText") self.web.setFocusPolicy(Qt.WheelFocus) self.web.setMinimumWidth(400)