Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.7.1, 0.7.2, and 0.7.3

status: fix ctrl-c/ctrl-v behavior in commit area

Emit copy-clipboard signal to focused widget if it's not
the treeview. This is horribly documented, but appears to
work. Fixes #84

Changeset 2b7f2f918a8c

Parent 6cad7c7963de

by Steve Borho

Changes to one file · Browse files at 2b7f2f918a8c Showing diff from parent 6cad7c7963de Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​status.py Stacked
 
413
414
415
416
 
 
417
418
419
 
413
414
415
 
416
417
418
419
420
@@ -413,7 +413,8 @@
  def copy_to_clipboard(self, treeview):   'Write highlighted hunks to the clipboard'   if not treeview.is_focus(): - # ignore ctrl-c not directed at treeview + w = self.get_focus() + w.emit('copy-clipboard')   return False   model, paths = treeview.get_selection().get_selected_rows()   cids = [ model[row][DM_CHUNK_ID] for row, in paths ]