예제 #1
0
 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
 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
 def keyPressEvent(self, ev):
     if ev.key() not in (Qt.Key_Enter, Qt.Key_Return):
         return QDialog.keyPressEvent(self, ev)