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

annotate: add F3/shift-F3 navigation between search results

Changeset 90e6161bf853

Parent e7f481ed664f

by Johan Samyn

Changes to one file · Browse files at 90e6161bf853 Showing diff from parent e7f481ed664f Diff from another changeset...

 
233
234
235
 
 
 
 
 
 
236
237
238
 
315
316
317
 
318
319
320
 
233
234
235
236
237
238
239
240
241
242
243
244
 
321
322
323
324
325
326
327
@@ -233,6 +233,12 @@
  self.thread.terminate()   self.finished()   return + if event.key() == Qt.Key_F3: + if event.modifiers() == Qt.ShiftModifier: + self.prevMatch() + else: + self.nextMatch() + return   return super(AnnotateView, self).keyPressEvent(event)     def fillModel(self, data): @@ -315,6 +321,7 @@
  if matches:   self.edit.setTextCursor(matches[0].cursor)   self.edit.setExtraSelections(self.colorsels + self.matches) + self.edit.setFocus()    class AnnotateThread(QThread):   'Background thread for annotating a file at a revision'