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

commit: use a QShortcut to replace keyPressEvent method

Changeset 9712d8ed5b2b

Parent 656ba4c9285b

by Steve Borho

Changes to one file · Browse files at 9712d8ed5b2b Showing diff from parent 656ba4c9285b Diff from another changeset...

 
1002
1003
1004
 
1005
1006
1007
 
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
 
1002
1003
1004
1005
1006
1007
1008
 
1030
1031
1032
 
 
 
 
 
 
 
 
1033
1034
1035
@@ -1002,6 +1002,7 @@
  self.commit.reload()   self.updateUndo()   self.commit.msgte.setFocus() + QShortcut(QKeySequence.Refresh, self, self.refresh)     def linkActivated(self, link):   link = hglib.fromunicode(link) @@ -1029,14 +1030,6 @@
  self.bb.button(BB.Discard).setEnabled(False)   self.bb.button(BB.Discard).setToolTip('')   - def keyPressEvent(self, event): - if event.key() == Qt.Key_Escape: - self.reject() - return - elif event.matches(QKeySequence.Refresh): - self.refresh() - return super(CommitDialog, self).keyPressEvent(event) -   def refresh(self):   self.updateUndo()   self.commit.reload()