A full QWERTY keyboard with three letter rows and a bottom row (space bar + hide button).
Row 1: q w e r t y u i o p + backspace
Row 2: a s d f g h j k l + enter
Row 3: z x c v b n m , . /
Long-press alternates (iOS-style popup): Keys like q show 1, a shows @ & 1, s shows $ % 2, etc. via a floating popup row.
Has a toolbar with a "Switch to programming keyboard" button and a symbols scroll row (paired symbols like ( ), { }, [ ], " " plus single symbols like . ; , = + - * / > <).
The "programming" keyboard shown by default in the exercise editor.
Includes: toolbar (switch to QWERTY, backspace with repeat, newline), symbol row (paired & single), exercise-specific function keys, and a scrollable grid of common p5 functions (setup, draw, createCanvas, background, fill, circle, etc.).
Supports long-press popups for function reference via a Modal that shows the symbol's syntax, description, and parameters.
Defines pairedSymbols (parentheses, braces, brackets, quotes with hint triggers for string/array) and singleSymbols (operators and punctuation).
Builds p5Functions array from a KEYBOARD_FUNCTIONS spec list, mapping function parameter types from the generated reference data.
2. Shift Key / Arrow
There is NO Shift key or Shift arrow anywhere in the codebase. The QWERTY keyboard entirely omits a Shift key. Instead, it uses an iOS-style long-press popup system where:
Pressing and holding a letter key (280ms delay) shows a floating row of alternate/secondary characters.
The user can slide their finger to select the desired alternate character.
This is implemented via handlePressIn/handlePressOut/handleTouchMove in QwertyKeyboard.tsx.
The "shift" string is completely absent from all TSX/TS source files.
Reference rendering utilities at /workspaces/learn-p5/src/utils/referenceRender.tsx (121 lines) provide highlightSyntax() and parseDescription() for rendering code and clickable symbol references.
copyToClipboard(text) helper function (lines 1413-1435):
Primary: navigator.clipboard.writeText(text)
Fallback: Creates a hidden <textarea>, selects it, calls document.execCommand('copy')
Copy button (lines 1446-1469): The "Copy" button in the editor header bar copies the current editor code to clipboard, shows a "Copied" confirmation with green styling for 2 seconds, and posts a codeCopied message to the React Native bridge.
The copyCode message handler: When the React Native side sends { type: 'copyCode' }, the bridge reads the editor content and writes it to navigator.clipboard.writeText(), then posts a codeCopied acknowledgment back.
No native React Native clipboard module (like @react-native-clipboard/clipboard) is used; all clipboard operations run inside the WebView via the Web Clipboard API.
5. describe() Function Usage
describe() is used extensively in p5.js example code stored within the reference data:
~1,202 occurrences in /workspaces/learn-p5/src/data/reference.generated.json
Example pattern: describe('A diagonal line radiating from the top-left corner of a square.');
These are p5.js accessibility descriptions embedded in example code from the official p5.js documentation.
Not used anywhere in the app's own TypeScript/TSX source code -- it only appears within the example code strings inside the reference JSON data.
6. Reference Page with Accordions
No Accordion component or pattern exists anywhere in the codebase. Searches for "Accordion", "accordion", "Collapsible", and "collapsible" returned zero results. The reference page uses a flat list grouped by module headers without any collapsible/expandable sections.
7. Breadcrumbs on Ref Route
Breadcrumbs are NOT used on the /ref route. The Breadcrumbs component exists at:
Each symbol also has a class (typically "p5"), an itemtype ("method", "property", or "type"), and the data includes byClass and byModule index maps in the generated reference.