From 19fb9b4ed7e7f2be1841943ae49ff899cad90919 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 1 Jan 2011 10:07:48 -0700 Subject: [PATCH] ... --- src/calibre/gui2/comments_editor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) # }}}