Commits

Steve Borho committed 2b7f2f9

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

Comments (0)

Files changed (1)

     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 ]