TiddlyWiki5
TiddlyWiki5 copied to clipboard
[BUG] edit-comptext disrupts tab and shift-tab navigation
Describe the bug
When editing a tiddler on a new empty.html file on Firefox, the tab and shift-tab navigation is disrupted.
Expected behavior
When editing a tiddler, the cursor is focused on the title field by default. In a fresh TW on Tiddly Desktop or a chromium-based browser, pressing tab cycles through the following fields in order:
- Tags
- Main text field
- Content type
- Field name
- Field value
But when editing a tiddler in Firefox, the cursor focuses on an extra step between Tags and Main text field.
The main text box is highlighted with a dotted line around its perimeter, but typing does nothing. Pressing tab one more time will bring the cursor back to the Main text field as intended.
To Reproduce
- Go to tiddlywiki.com and download empty.html
- Open empty.html in Firefox
- Create a new Tiddler, and press tab to try and navigate to the main text field
- Notice the extra step in between the tags and the main text field
Screenshots
No response
TiddlyWiki Configuration
- Version v5.2.2
- Saving mechanism [Firefox, but this is reproducible without trying to save]
- Plugins installed [None]
Desktop (please complete the following information):
- OS: Linux Mint 20.3 and Windows 10
- Browser [Firefox]
- Version [101]
Smartphone (please complete the following information):
N/A
Additional context
No response
Confirmed. Looks like a (pretty dumb) bug in Firefox to me. The activated/focused element is the <html>
element in the iframe
used by the editor -- a completely pointless thing to set focus to. Setting it to tabindex="-1"
doesn't help, either.
You could try dropping a bug on Bugzilla -- but I wouldn't hold my breath counting on them for a fix.
@Jermolene I suppose you could trap focus and nudge it along (though I'm not sure how to detect forward/backward tabbing).