diff --git a/src/calibre/gui2/comments_editor.py b/src/calibre/gui2/comments_editor.py index 72e73efa03..013d13f9e7 100644 --- a/src/calibre/gui2/comments_editor.py +++ b/src/calibre/gui2/comments_editor.py @@ -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) # }}}