コード例 #1
0
ファイル: match_books.py プロジェクト: MarioJC/calibre
 def keyPressEvent(self, e):
     if self.ignore_next_key:
         self.ignore_next_key = False
     else:
         QDialog.keyPressEvent(self, e)
コード例 #2
0
 def keyPressEvent(self, ev):
     if ev.key() in (Qt.Key_Enter, Qt.Key_Return):
         ev.accept()
         return
     return QDialog.keyPressEvent(self, ev)
コード例 #3
0
ファイル: diff.py プロジェクト: davidfor/calibre
 def keyPressEvent(self, ev):
     if ev.key() in (Qt.Key_Enter, Qt.Key_Return):
         ev.accept()
         return
     return QDialog.keyPressEvent(self, ev)
コード例 #4
0
ファイル: progress.py プロジェクト: zwlistu/calibre
 def keyPressEvent(self, ev):
     if ev.key() == Qt.Key_Escape:
         if self.cancelable:
             self._canceled()
     else:
         QDialog.keyPressEvent(self, ev)
コード例 #5
0
 def keyPressEvent(self, e):
     if self.ignore_next_key:
         self.ignore_next_key = False
     else:
         QDialog.keyPressEvent(self, e)
コード例 #6
0
 def keyPressEvent(self, e):
     if e.key() == Qt.Key_Return:
         return
     return QDialog.keyPressEvent(self, e)
コード例 #7
0
ファイル: scheduler.py プロジェクト: AtulKumar2/calibre
 def keyPressEvent(self, ev):
     if ev.key() not in (Qt.Key_Enter, Qt.Key_Return):
         return QDialog.keyPressEvent(self, ev)
コード例 #8
0
 def keyPressEvent(self, e):
     if e.key() == Qt.Key_Return:
         return
     return QDialog.keyPressEvent(self, e)
コード例 #9
0
ファイル: scheduler.py プロジェクト: zhongsifen/calibre
 def keyPressEvent(self, ev):
     if ev.key() not in (Qt.Key_Enter, Qt.Key_Return):
         return QDialog.keyPressEvent(self, ev)