mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
de06b05355
commit
19fb9b4ed7
@ -263,13 +263,13 @@ class EditorWidget(QWebView): # {{{
|
||||
if ev.key() in (Qt.Key_Tab, Qt.Key_Escape, Qt.Key_Backtab):
|
||||
ev.ignore()
|
||||
else:
|
||||
return QWebView.keyPressed(self, ev)
|
||||
return QWebView.keyPressEvent(self, ev)
|
||||
|
||||
def keyReleaseEvent(self, ev):
|
||||
if ev.key() in (Qt.Key_Tab, Qt.Key_Escape, Qt.Key_Backtab):
|
||||
ev.ignore()
|
||||
else:
|
||||
return QWebView.keyReleased(self, ev)
|
||||
return QWebView.keyReleaseEvent(self, ev)
|
||||
|
||||
|
||||
# }}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user