parameters: (client)
return_statement: return result
docstring: Fetches the hotkey data from the spreadsheet.
docstring_summary: Fetches the hotkey data from the spreadsheet.
docstring_tokens: Fetches the hotkey data from the spreadsheet .
function: def FetchHotkeyData(client):
    """Fetches the hotkey data from the spreadsheet."""
    hotkey_sheet = ['Cross Platform Behaviors']
    hotkey_cols = ['behavior', 'context', 'kind', 'actionctrlctrlcmdonmac',
                   'chromeos', 'descriptionfortranslation']
    hotkey_data = FetchSpreadsheetFeeds(client, HOTKEY_SPREADSHEET_KEY,
                                        hotkey_sheet, hotkey_cols)
    action_to_id = {}
    id_to_behavior = {}
    # (behavior, action)
    result = []
    for line in hotkey_data['Cross Platform Behaviors']:
      if (not line.get('chromeos')) or (line.get('kind') != 'Key'):
        continue
      action = ToKeys(line['actionctrlctrlcmdonmac'])
      if not action:
        continue
      behavior = line['behavior'].strip()
      description = line.get('descriptionfortranslation')
      result.append((behavior, action, description))
    return result
function_tokens: def FetchHotkeyData ( client ) : hotkey_sheet = [ 'Cross Platform Behaviors' ] hotkey_cols = [ 'behavior' , 'context' , 'kind' , 'actionctrlctrlcmdonmac' , 'chromeos' , 'descriptionfortranslation' ] hotkey_data = FetchSpreadsheetFeeds ( client , HOTKEY_SPREADSHEET_KEY , hotkey_sheet , hotkey_cols ) action_to_id = { } id_to_behavior = { } # (behavior, action) result = [ ] for line in hotkey_data [ 'Cross Platform Behaviors' ] : if ( not line . get ( 'chromeos' ) ) or ( line . get ( 'kind' ) != 'Key' ) : continue action = ToKeys ( line [ 'actionctrlctrlcmdonmac' ] ) if not action : continue behavior = line [ 'behavior' ] . strip ( ) description = line . get ( 'descriptionfortranslation' ) result . append ( ( behavior , action , description ) ) return result