[Sugar-devel] [PATCH] Set default accelerators for Copy and Paste buttons

Bernie Innocenti bernie at codewiz.org
Sat Jun 19 08:29:23 EDT 2010


---
 src/sugar/activity/widgets.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/sugar/activity/widgets.py b/src/sugar/activity/widgets.py
index 83b689c..f89ac1f 100644
--- a/src/sugar/activity/widgets.py
+++ b/src/sugar/activity/widgets.py
@@ -108,6 +108,7 @@ class CopyButton(ToolButton):
     def __init__(self, **kwargs):
         ToolButton.__init__(self, 'edit-copy', **kwargs)
         self.props.tooltip = _('Copy')
+        self.props.accelerator = '<Ctrl>C'
 
 
 class PasteButton(ToolButton):
@@ -115,6 +116,7 @@ class PasteButton(ToolButton):
     def __init__(self, **kwargs):
         ToolButton.__init__(self, 'edit-paste', **kwargs)
         self.props.tooltip = _('Paste')
+        self.props.accelerator = '<Ctrl>V'
 
 
 class ShareButton(RadioMenuButton):
-- 
1.7.1



More information about the Sugar-devel mailing list