[sugar] [PATCH] fix #4646 - replace/normalize some keyboard shortcuts

Martin Dengler martin
Mon Jun 9 02:45:27 EDT 2008


Eben transferred this ticket to Sugar saying he's OK with these
changes.  Can someone review please?

I can email support@ or sugar@ or other mailing lists (suggestions
welcome) about corrdinating the wiki / other documentation changes
once that's done.

Martin

On Tue, Apr 29, 2008 at 09:45:06PM +0100, Martin Dengler wrote:
> ---
>  src/view/keyhandler.py |   25 ++++++++++++-------------
>  1 files changed, 12 insertions(+), 13 deletions(-)
> 
> diff --git a/src/view/keyhandler.py b/src/view/keyhandler.py
> index 306bb21..219cc5e 100644
> --- a/src/view/keyhandler.py
> +++ b/src/view/keyhandler.py
> @@ -40,26 +40,25 @@ _actions_table = {
>      'F4'             : 'zoom_activity',
>      'F9'             : 'brightness_down',
>      'F10'            : 'brightness_up',
> -    '<ctrl>F9'       : 'brightness_min',
> -    '<ctrl>F10'      : 'brightness_max',
> +    '<alt>F9'        : 'brightness_min',
> +    '<alt>F10'       : 'brightness_max',
>      'F11'            : 'volume_down',
>      'F12'            : 'volume_up',
> -    '<ctrl>F11'      : 'volume_min',
> -    '<ctrl>F12'      : 'volume_max',
> +    '<alt>F11'       : 'volume_min',
> +    '<alt>F12'       : 'volume_max',
>      '<alt>1'         : 'screenshot',
> -    '<alt>f'         : 'frame',
>      '0x93'           : 'frame',
>      '0xEB'           : 'rotate',
> -    '<alt>r'         : 'rotate',
> -    '<alt>q'         : 'quit_emulator',
>      '<alt>Tab'       : 'next_window',
> -    '<alt>n'         : 'next_window',
> -    '<ctrl><alt>Tab' : 'previous_window',
> -    '<alt>p'         : 'previous_window',
> -    '<ctrl>Escape'   : 'close_window',
> -    '<ctrl>q'        : 'close_window',
> +    '<alt><shift>Tab': 'previous_window',
> +    '<alt>Escape'    : 'close_window',
>      '0xDC'           : 'open_search',
> -    '<alt>s'         : 'say_text'
> +# the following are intended for emulator users
> +    '<alt><shift>f'  : 'frame',
> +    '<alt><shift>q'  : 'quit_emulator',
> +    '<alt><shift>o'  : 'open_search',
> +    '<alt><shift>r'  : 'rotate',
> +    '<alt><shift>s'  : 'say_text',
>  }
>  
>  J_DBUS_SERVICE = 'org.laptop.Journal'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.laptop.org/pipermail/sugar/attachments/20080609/08219524/attachment.pgp 



More information about the Sugar-devel mailing list