From 321c4d7ff8c7748b7487bb35ce8c5937067c3622 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 2 Aug 2017 15:38:35 +1000 Subject: [PATCH] no longer need to hack around webengine stealing focus --- aqt/clayout.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/aqt/clayout.py b/aqt/clayout.py index 87e138adc..27429b311 100644 --- a/aqt/clayout.py +++ b/aqt/clayout.py @@ -227,8 +227,6 @@ Please create a new card type first.""")) jsinc = ["jquery.js","browsersel.js", "mathjax/conf.js", "mathjax/MathJax.js", "mathjax/queue-typeset.js"] - self.tab['pform'].frontWeb.setEnabled(False) - self.tab['pform'].backWeb.setEnabled(False) self.tab['pform'].frontWeb.stdHtml( ti(mungeQA(self.mw.col, c.q(reload=True)))+ self.tab['pform'].frontWeb.bundledCSS("reviewer.css"), @@ -237,8 +235,6 @@ Please create a new card type first.""")) ti(mungeQA(self.mw.col, c.a()), type='a')+ self.tab['pform'].backWeb.bundledCSS("reviewer.css"), bodyClass="card card%d" % (c.ord+1), head=base, js=jsinc), - self.tab['pform'].frontWeb.setEnabled(True) - self.tab['pform'].backWeb.setEnabled(True) clearAudioQueue() if c.id not in self.playedAudio: playFromText(c.q())