Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9.3, 2.0, and 2.0.1

stable commit: use a QShortcut instead of reimplementing keyPressEvent

Changeset 3dcbe73230f1

Parent 9f34fd789b19

by Steve Borho

Changes to one file · Browse files at 3dcbe73230f1 Showing diff from parent 9f34fd789b19 Diff from another changeset...

 
251
252
253
 
254
255
256
 
608
609
610
611
612
613
614
615
616
617
618
619
620
 
251
252
253
254
255
256
257
 
609
610
611
 
 
 
 
 
 
 
612
613
614
@@ -251,6 +251,7 @@
  self.stwidget.split.addWidget(self.split)   self.msgte = msgte   self.msgcombo = msgcombo + QShortcut(QKeySequence('Ctrl+Return'), self, self.commit)     @pyqtSlot(QString, QString)   def fileDisplayed(self, wfile, contents): @@ -608,13 +609,6 @@
  self.commitComplete.emit()   self.stwidget.refreshWctx()   - def keyPressEvent(self, event): - if event.key() in (Qt.Key_Return, Qt.Key_Enter): - if event.modifiers() == Qt.ControlModifier: - self.commit() - return - return super(CommitWidget, self).keyPressEvent(event) -  class MessageHistoryCombo(QComboBox):   def __init__(self, parent=None):   QComboBox.__init__(self, parent)