[Sugar-devel] [PATCH] Set default accelerators for Copy and Paste buttons
Aleksey Lim
alsroot at member.fsf.org
Sat Jun 19 18:40:29 EDT 2010
On Sat, Jun 19, 2010 at 08:29:23AM -0400, Bernie Innocenti wrote:
> ---
> 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
>
Yeah, we missed obvious option..
+1
--
Aleksey
More information about the Sugar-devel
mailing list