Home / Function/ handleCopyCell() — supabase Function Reference

handleCopyCell() — supabase Function Reference

Architecture documentation for the handleCopyCell() function in SupabaseGrid.utils.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  4e24acaa_3720_76ac_da6b_725dabb59ac8["handleCopyCell()"]
  a07b64db_a96e_da6c_ec6f_64cb1f1ba8c9["formatClipboardValue()"]
  4e24acaa_3720_76ac_da6b_725dabb59ac8 -->|calls| a07b64db_a96e_da6c_ec6f_64cb1f1ba8c9
  style 4e24acaa_3720_76ac_da6b_725dabb59ac8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/grid/SupabaseGrid.utils.ts lines 267–281

export const handleCopyCell = (
  {
    mode,
    column,
    row,
  }: { mode: 'SELECT' | 'EDIT'; column: CalculatedColumn<any, unknown>; row: any },
  event: CellKeyboardEvent
) => {
  if (mode === 'SELECT' && event.code === 'KeyC' && (event.metaKey || event.ctrlKey)) {
    const colKey = column.key
    const cellValue = row[colKey] ?? ''
    const value = formatClipboardValue(cellValue)
    copyToClipboard(value)
  }
}

Subdomains

Frequently Asked Questions

What does handleCopyCell() do?
handleCopyCell() is a function in the supabase codebase.
What does handleCopyCell() call?
handleCopyCell() calls 1 function(s): formatClipboardValue.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free