allow main webview to focus, which may fix shortcut issues

some users reported plugins that define reviewer shortcuts broke
This commit is contained in:
Damien Elmes 2014-04-16 01:43:33 +09:00
parent 5d1aeb4dde
commit 28b2f8fe03

View file

@ -512,7 +512,7 @@ title="%s">%s</button>''' % (
self.toolbar = aqt.toolbar.Toolbar(self, tweb) self.toolbar = aqt.toolbar.Toolbar(self, tweb)
self.toolbar.draw() self.toolbar.draw()
# main area # main area
self.web = aqt.webview.AnkiWebView(canCopy=True) self.web = aqt.webview.AnkiWebView(canFocus=True)
self.web.setObjectName("mainText") self.web.setObjectName("mainText")
self.web.setFocusPolicy(Qt.WheelFocus) self.web.setFocusPolicy(Qt.WheelFocus)
self.web.setMinimumWidth(400) self.web.setMinimumWidth(400)