コード例 #1
0
ファイル: htmltabwidget.py プロジェクト: eaglexmw/codimension
 def keyPressEvent( self, event ):
     " Handles the key press events "
     if event.key() == Qt.Key_Escape:
         self.escapePressed.emit()
         event.accept()
     else:
         QWebView.keyPressEvent( self, event )
     return
コード例 #2
0
 def keyPressEvent(self, event):
     " Handles the key press events "
     if event.key() == Qt.Key_Escape:
         self.escapePressed.emit()
         event.accept()
     else:
         QWebView.keyPressEvent(self, event)
     return
コード例 #3
0
 def keyPressEvent(self, evt):
     """
     Protected method called by a key press.
     
     This method is overridden from QTextBrowser.
     
     @param evt the key event (QKeyEvent)
     """
     self.ctrlPressed = (evt.key() == Qt.Key_Control)
     QWebView.keyPressEvent(self, evt)
コード例 #4
0
ファイル: documentview.py プロジェクト: alfaniel/calibre
 def keyPressEvent(self, event):
     if not self.handle_key_press(event):
         return QWebView.keyPressEvent(self, event)
コード例 #5
0
 def keyPressEvent(self, ev):
     if ev.key() in (Qt.Key_Tab, Qt.Key_Escape, Qt.Key_Backtab):
         ev.ignore()
     else:
         return QWebView.keyPressEvent(self, ev)
コード例 #6
0
ファイル: view.py プロジェクト: TianYuanChu/AnkiCPRP
 def keyPressEvent(self, evt):
     if evt.matches(QKeySequence.Copy):
         self.triggerPageAction(QWebPage.Copy)
         evt.accept()
     QWebView.keyPressEvent(self, evt)
コード例 #7
0
ファイル: documentview.py プロジェクト: kmshi/calibre
 def keyPressEvent(self, event):
     if not self.handle_key_press(event):
         return QWebView.keyPressEvent(self, event)
コード例 #8
0
 def keyPressEvent(self, ev):
     if ev.key() in (Qt.Key_Tab, Qt.Key_Escape, Qt.Key_Backtab):
         ev.ignore()
     else:
         return QWebView.keyPressEvent(self, ev)
コード例 #9
0
ファイル: view.py プロジェクト: bmabey/ankiqt
 def keyPressEvent(self, evt):
     if evt.matches(QKeySequence.Copy):
         self.triggerPageAction(QWebPage.Copy)
         evt.accept()
     QWebView.keyPressEvent(self, evt)