===== Twiddler Tags ===== Twiddler tags define keyboard functions and modifier shortcuts. All tags are enclosed in angle brackets: `<>`. Tags fall into two distinct categories: * **Modifier Tags (Paired):** Require both an opening tag and a closing tag to enclose modified content (e.g., ''... ''). * **Key Tags (Standalone):** Act on their own to trigger explicit host operating system actions (e.g., '''') and do not require a closing tag. ---- ==== Modifier Elements ==== Modifiers are keys that do not send an independent HID code when pressed alone, but modify other characters when pressed simultaneously (e.g., pressing **Ctrl + C** to copy text). Each **Modifier Element** wraps the target text between a start tag and an end tag: Content to modify... === Modifier Key Mapping Table === ^ Twiddler Modifier Key Syntax ^ Windows Key ^ macOS Equivalent ^ Linux Equivalent ^ | Left Control | Left Ctrl | Left Control | Left Ctrl | | Left Shift | Left Shift | Left Shift | Left Shift | | Left Alt | Left Alt | Left Option (⌥) | Left Alt | | Left GUI | Left Windows | Left Command (⌘) | Left Super | | Right Control | Right Ctrl | Right Control | Right Ctrl | | Right Shift | Right Shift | Right Shift | Right Shift | | Right Alt | Right Alt | Right Option (⌥) | Right Alt (often AltGr) | | Right GUI | Right Windows | Right Command (⌘) | Right Super | ---- ==== Nesting Modifiers ==== Modifiers can be nested to combine multiple modifier keys. Always close inner tags before closing outer tags (First-In, Last-Out). **Example:** To create a chord for **Shift + Alt + GUI + g**: g ---- ==== KB Tag Delimiters ==== When configuring the Twiddler to output code snippets (such as HTML tags like `

` or symbols like `{ }` and `[ ]`), standard angle brackets can conflict with Twiddler's tag syntax parser. To prevent syntax errors, you can change the **KB Tag** delimiter in the Tuner so that raw brackets in your text are not misinterpreted as Twiddler tags. {{https://tgimages.s3.amazonaws.com/twiddler/wiki/T4_KBTag.jpg?560x247|KB Tag Configuration in Tuner}} Once changed, the tag delimiters in the chord table will update to match your selected brackets (e.g., changing from `< >` to `[ ]`): {{https://tgimages.s3.amazonaws.com/twiddler/wiki/T4_KBSyntax.jpg?560x507|Updated KB Syntax Display}} ---- ==== Complete Special Key Syntax ==== //Shown using default `< >` tag delimiters.// ^ Key Type / Name ^ Syntax ^ | [MODIFIER] Left Ctrl | '' '' | | [MODIFIER] Left Shift | '' '' | | [MODIFIER] Left Alt | '' '' | | [MODIFIER] Left GUI | '' '' | | [MODIFIER] Right Ctrl | '' '' | | [MODIFIER] Right Shift | '' '' | | [MODIFIER] Right Alt | '' '' | | [MODIFIER] Right GUI | '' '' | | Return | '''' | | Escape | '''' | | Backspace | '''' | | Tab | '''' | | Non-US# | '''' | | Caps Lock | '''' | | F1 | '''' | | F2 | '''' | | F3 | '''' | | F4 | '''' | | F5 | '''' | | F6 | '''' | | F7 | '''' | | F8 | '''' | | F9 | '''' | | F10 | '''' | | F11 | '''' | | F12 | '''' | | F13 | '''' | | F14 | '''' | | F15 | '''' | | F16 | '''' | | F17 | '''' | | F18 | '''' | | F19 | '''' | | F20 | '''' | | F21 | '''' | | F22 | '''' | | F23 | '''' | | F24 | '''' | | Print Screen | '''' | | Scroll Lock | '''' | | Pause | '''' | | Insert | '''' | | Home | '''' | | Page Up | '''' | | Delete | '''' | | End | '''' | | Page Down | '''' | | Right Arrow | '''' | | Left Arrow | '''' | | Down Arrow | '''' | | Up Arrow | '''' | | NumLock | '''' | | Application | '''' | | HID Code | '''' | | Key Pad / | '''' | | Key Pad * | '''' | | Key Pad - | '''' | | Key Pad + | '''' | | Key Pad Enter | '''' | | Key Pad 1 | '''' | | Key Pad 2 | '''' | | Key Pad 3 | '''' | | Key Pad 4 | '''' | | Key Pad 5 | '''' | | Key Pad 6 | '''' | | Key Pad 7 | '''' | | Key Pad 8 | '''' | | Key Pad 9 | '''' | | Key Pad 0 | '''' | | Key Pad . | '''' | | Key Pad = | '''' |