User Tools

Site Tools


tuner_key_syntax

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tuner_key_syntax [2026/08/06 20:18] – [Complete Special Key Syntax] tonytuner_key_syntax [2026/08/06 20:24] (current) – tony
Line 1: Line 1:
 ===== Twiddler Tags ===== ===== Twiddler Tags =====
  
-All Twiddler Elements are written inside angle brackets: <>+Twiddler tags define keyboard functions and modifier shortcuts. All tags are enclosed in angle brackets: `<>`.
  
-Modifier tags work in pairs to enclose content. Together, the opening tag, the content, and the closing tag form what is called a Modifier Element.+Tags fall into two distinct categories: 
 +  * **Modifier Tags (Paired):** Require both an opening tag and a closing tag to enclose modified content (e.g., ''<Left Shift>... </Left Shift>''). 
 +  * **Key Tags (Standalone):** Act on their own to trigger explicit host operating system actions (e.g., ''<Return>'') and do not require a closing tag.
  
-Key tags act on their own.  The too are written inside angle brackets: <> but do not need a closing tag.  These are usually explicit functions known by the Host OS.  +----
  
-==== Modifier Element ====+==== Modifier Elements ====
  
-Modifiers are keys that do not send an HID code when pressed on their own but modify another character when pressed together.  An example of this is Control-C to copy text.  "Control" pressed on its own will do nothing.  "Control" and "c" pressed will copy a selection to the clipboard.+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 consists of a start tag and end tag, with the content to be modified inserted in between.+Each **Modifier Element** wraps the target text between a start tag and an end tag:
  
-<tagname>//Content goes here...//</tagname>+<code><tagname>Content to modify...</tagname></code>
  
-**Modifier Key Mapping Table** +=== 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 | +
  
 +^ 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 ==== ==== Nesting Modifiers ====
  
-Modifiers can be nested.  Just make sure to close the inner tags first and move to the outer tags.+Modifiers can be nested to combine multiple modifier keys. Always close inner tags before closing outer tags (First-In, Last-Out).
  
-Shift-Alt-GUI-g would be entered like this:+**Example:** To create a chord for **Shift + Alt + GUI + g**:
  
-<Left Shift><Left Alt><Left GUI>g</Left GUI></Left Alt></Left Shift> +<code><Left Shift><Left Alt><Left GUI>g</Left GUI></Left Alt></Left Shift></code>
- +
-==== KB Tag ==== +
-Setting the Twiddler to type out code attributes might cause syntax errors due to the brackets in the opening/closing tag, such as < > { } [ ] +
- +
-The KB Tag setting in the Tuner avoids that problem by allowing you to select a delimiter for your keyboard. +
- +
-For instance, if you want to type out a code attribute with an opening tag like <p> and an ending tag like </p> on your Twiddler, you will have to change the KB Tag delimiter to something other than KB TAG <...> - otherwise those brackets "<" and ">" will not be seen as part of the text. +
-{{https://tgimages.s3.amazonaws.com/twiddler/wiki/T4_KBTag.jpg?560x247|KBTag on Tuner}} +
-{{https://tgimages.s3.amazonaws.com/twiddler/wiki/T4_KBSyntax.jpg?560x507|KBSyntax on Tuner}} +
- +
-==== Complete Special Key Syntax ==== +
-Using default <> Keyboard tag delimiters +
- +
-^ KEY ^ SYNTAX ^ +
-| [MODIFIER] Left Ctrl | <LCtrl> </LCtrl> | +
-| [MODIFIER] Left Shift | <LShift> </LShift> | +
-| [MODIFIER] Left Alt | <LAlt> </LAlt> | +
-| [MODIFIER] Left GUI | <LGUI> </LGUI> | +
-| [MODIFIER] Right Ctrl | <RCtrl> </RCtrl> | +
-| [MODIFIER] Right Shift | <RShift> </RShift> | +
-| [MODIFIER] Right Alt | <RAlt> </RAlt> | +
-| [MODIFIER] Right GUI | <RGUI> </RGUI> | +
-| Return | <Return> | +
-| Escape | <Escape> | +
-| Backspace | <Backspace> | +
-| Tab | <Tab> | +
-| Non-US# | <Non-US#> | +
-| Caps Lock | <CapsLock> | +
-| F1 | <F1> | +
-| F2 | <F2> | +
-| F3 | <F3> | +
-| F4 | <F4> | +
-| F5 | <F5> | +
-| F6 | <F6> | +
-| F7 | <F7> | +
-| F8 | <F8> | +
-| F9 | <F9> | +
-| F10 | <F10> | +
-| F11 | <F11> | +
-| F12 | <F12> | +
-| F13 | <F13> | +
-| F14 | <F14> | +
-| F15 | <F15> | +
-| F16 | <F16> | +
-| F17 | <F17> | +
-| F18 | <F18> | +
-| F19 | <F19> | +
-| F20 | <F20> | +
-| F21 | <F21> | +
-| F22 | <F22> | +
-| F23 | <F23> | +
-| F24 | <F24> | +
-| Print Screen | <PrintScreen> | +
-| Scroll Lock | <ScrollLock> | +
-| Pause | <Pause> | +
-| Insert | <Insert> | +
-| Home | <Home> | +
-| PageUp | <PageUp> | +
-| Delete | <Delete> | +
-| End | <End> | +
-| Page Down | <PageDown> | +
-| Right Arrow | <RightArrow> | +
-| Left Arrow | <LeftArrow> | +
-| Down Arrow | <DownArrow> | +
-| UpArrow | <UpArrow> | +
-| NumLock | <NumLock> | +
-| Application | <Application> | +
-| HID Code | <HIDCode //Decimal HID Number//> | +
-| Key Pad / | <KP/> | +
-| Key Pad * | <KP*> | +
-| Key Pad - | <KP- > | +
-| Key Pad + | <KP+> | +
-| Key Pad Enter | <KPEnter> | +
-| Key Pad 1 | <KP1> | +
-| Key Pad 2 | <KP2> | +
-| Key Pad 3 | <KP3> | +
-| Key Pad 4 | <KP4> | +
-| Key Pad 5 | <KP5> | +
-| Key Pad 6 | <KP6> | +
-| Key Pad 7 | <KP7> | +
-| Key Pad 8 | <KP8> | +
-| Key Pad 9 | <KP9> | +
-| Key Pad 0 | <KP0> | +
-| Key Pad . | <KP.> | +
-| Key Pad = | <nowiki><KP=></nowiki> |+
  
 +----
  
 +==== KB Tag Delimiters ====
  
 +When configuring the Twiddler to output code snippets (such as HTML tags like `<p>` 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 | ''<LCtrl> </LCtrl>'' | 
 +| [MODIFIER] Left Shift | ''<LShift> </LShift>'' | 
 +| [MODIFIER] Left Alt | ''<LAlt> </LAlt>'' | 
 +| [MODIFIER] Left GUI | ''<LGUI> </LGUI>'' | 
 +| [MODIFIER] Right Ctrl | ''<RCtrl> </RCtrl>'' | 
 +| [MODIFIER] Right Shift | ''<RShift> </RShift>'' | 
 +| [MODIFIER] Right Alt | ''<RAlt> </RAlt>'' | 
 +| [MODIFIER] Right GUI | ''<RGUI> </RGUI>'' | 
 +| Return | ''<Return>'' | 
 +| Escape | ''<Escape>'' | 
 +| Backspace | ''<Backspace>'' | 
 +| Tab | ''<Tab>'' | 
 +| Non-US# | ''<Non-US#>'' | 
 +| Caps Lock | ''<CapsLock>'' | 
 +| F1 | ''<F1>'' | 
 +| F2 | ''<F2>'' | 
 +| F3 | ''<F3>'' | 
 +| F4 | ''<F4>'' | 
 +| F5 | ''<F5>'' | 
 +| F6 | ''<F6>'' | 
 +| F7 | ''<F7>'' | 
 +| F8 | ''<F8>'' | 
 +| F9 | ''<F9>'' | 
 +| F10 | ''<F10>'' | 
 +| F11 | ''<F11>'' | 
 +| F12 | ''<F12>'' | 
 +| F13 | ''<F13>'' | 
 +| F14 | ''<F14>'' | 
 +| F15 | ''<F15>'' | 
 +| F16 | ''<F16>'' | 
 +| F17 | ''<F17>'' | 
 +| F18 | ''<F18>'' | 
 +| F19 | ''<F19>'' | 
 +| F20 | ''<F20>'' | 
 +| F21 | ''<F21>'' | 
 +| F22 | ''<F22>'' | 
 +| F23 | ''<F23>'' | 
 +| F24 | ''<F24>'' | 
 +| Print Screen | ''<PrintScreen>'' | 
 +| Scroll Lock | ''<ScrollLock>'' | 
 +| Pause | ''<Pause>'' | 
 +| Insert | ''<Insert>'' | 
 +| Home | ''<Home>'' | 
 +| Page Up | ''<PageUp>'' | 
 +| Delete | ''<Delete>'' | 
 +| End | ''<End>'' | 
 +| Page Down | ''<PageDown>'' | 
 +| Right Arrow | ''<RightArrow>'' | 
 +| Left Arrow | ''<LeftArrow>'' | 
 +| Down Arrow | ''<DownArrow>'' | 
 +| Up Arrow | ''<UpArrow>'' | 
 +| NumLock | ''<NumLock>'' | 
 +| Application | ''<Application>'' | 
 +| HID Code | ''<HIDCode Decimal HID Number>'' | 
 +| Key Pad / | ''<KP/>'' | 
 +| Key Pad * | ''<KP*>'' | 
 +| Key Pad - | ''<KP->'' | 
 +| Key Pad + | ''<KP+>'' | 
 +| Key Pad Enter | ''<KPEnter>'' | 
 +| Key Pad 1 | ''<KP1>'' | 
 +| Key Pad 2 | ''<KP2>'' | 
 +| Key Pad 3 | ''<KP3>'' | 
 +| Key Pad 4 | ''<KP4>'' | 
 +| Key Pad 5 | ''<KP5>'' | 
 +| Key Pad 6 | ''<KP6>'' | 
 +| Key Pad 7 | ''<KP7>'' | 
 +| Key Pad 8 | ''<KP8>'' | 
 +| Key Pad 9 | ''<KP9>'' | 
 +| Key Pad 0 | ''<KP0>'' | 
 +| Key Pad . | ''<KP.>'' | 
 +| Key Pad = | ''<KP=>'' |
tuner_key_syntax.1786047518.txt.gz · Last modified: by tony