mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
allow main webview to focus, which may fix shortcut issues
some users reported plugins that define reviewer shortcuts broke
This commit is contained in:
parent
5d1aeb4dde
commit
28b2f8fe03
1 changed files with 1 additions and 1 deletions
|
@ -512,7 +512,7 @@ title="%s">%s</button>''' % (
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue