Simple keys:
a - Simple key A (POST to /test/key-a)esc - Escape key (POST)Simultaneous combinations with HTMX options:
Ctrl+S - Save (POST with swap: innerHTML)Ctrl+C - Copy (POST with target: #result, swap: outerHTML)Sequences with various configs:
A B - Sequence (POST with extra values: {"extra": "data"})A B C - Triple sequence (GET request)shift shift - Press Shift twice in sequenceComplex:
Ctrl+C C - Ctrl+C then C aloneCtrl+C Ctrl+C - Ctrl+C twiceTip: Check the log to see how HTMX options (target, swap, extra values) are passed!
Parameters Explained:
• has_focus: Whether the registered element itself has focus
• is_inside: Whether the focus is on the registered element or any of its children
Example: If focus is on this input and its parent div is registered, has_focus=false but is_inside=true