parameters: (hotkey)
return_statement: return '<>'.join(keycode + modifiers)
docstring: Converts the action value to shortcut keys used from JavaScript.
  
    Examples:
      'Ctrl - 9' => '9<>CTRL'
      'Ctrl - Shift - Tab' => 'tab<>CTRL<>SHIFT'
docstring_summary: Converts the action value to shortcut keys used from JavaScript.
docstring_tokens: Converts the action value to shortcut keys used from JavaScript .
function: def ToKeys(hotkey):
    """Converts the action value to shortcut keys used from JavaScript.
  
    Examples:
      'Ctrl - 9' => '9<>CTRL'
      'Ctrl - Shift - Tab' => 'tab<>CTRL<>SHIFT'
    """
    values = hotkey.split(' - ')
    modifiers = sorted(value.upper() for value in values
                       if value in ['Shift', 'Ctrl', 'Alt', 'Search'])
    keycode = [value.lower() for value in values
               if value not in ['Shift', 'Ctrl', 'Alt', 'Search']]
    # The keys which are highlighted even without modifier keys.
    base_keys = ['backspace', 'power']
    if not modifiers and (keycode and keycode[0] not in base_keys):
      return None
    return '<>'.join(keycode + modifiers)
function_tokens: def ToKeys ( hotkey ) : values = hotkey . split ( ' - ' ) modifiers = sorted ( value . upper ( ) for value in values if value in [ 'Shift' , 'Ctrl' , 'Alt' , 'Search' ] ) keycode = [ value . lower ( ) for value in values if value not in [ 'Shift' , 'Ctrl' , 'Alt' , 'Search' ] ] # The keys which are highlighted even without modifier keys. base_keys = [ 'backspace' , 'power' ] if not modifiers and ( keycode and keycode [ 0 ] not in base_keys ) : return None return '<>' . join ( keycode + modifiers )