From e2ab351b367e6b95fcd3ba385bb29ecb7453b2d0 Mon Sep 17 00:00:00 2001 From: Bernie Innocenti Date: Sat, 19 Jun 2010 08:23:04 -0400 Subject: [PATCH] Set default accelerators for Copy and Paste buttons --- src/sugar/activity/widgets.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sugar/activity/widgets.py b/src/sugar/activity/widgets.py index 6cfd33bd..ed80a03d 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 = '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 = 'V' class ShareButton(RadioMenuButton):