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

Sascha Silbe sascha-ml-ui-sugar-devel at silbe.org
Sat Jun 19 10:04:31 EDT 2010


Excerpts from Bernie Innocenti's message of Sat Jun 19 12:29:23 +0000 2010:

> @@ -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'

> @@ -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'

Reviewed-By: Sascha Silbe <sascha-pgp at silbe.org>

Sascha

-- 
http://sascha.silbe.org/
http://www.infra-silbe.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
Url : http://lists.sugarlabs.org/archive/sugar-devel/attachments/20100619/6a9f6895/attachment.pgp 


More information about the Sugar-devel mailing list