Skip to content

Remove focus from Redactor & using Tab key #30

@Errapolis

Description

@Errapolis

I tried to explain this in the NodeBB forums but it probably looked confusing. There's two points.

First point:

When you go to begin a new topic on NodeBB with the default composer, input is automatically focused on the Title field. You can then either tab to change categories and/or add tags, etc.

On Redactor composer, Redactor's text area itself is focused on. This means instead of the cursor starting in the topic title field, you're typing straight into Redactor composer.

Now this isn't a bad thing when replying to a topic (you're immediately typing a reply), but in starting a new topic you have to physically select the title field to do that where intuitively it should start there.

Second point:

If you do select the title input field, you cannot use the Tab key to navigate into Redactor composer from the tags. It skips it completely. You have to physically click on the composer to to type in a post.

Default composer, you'd press Tab to move from:
Title > Category dropdown > Tags > Composer > Submit button

In Redactor, using Tab to navigate goes like this (assuming you click on Title to begin):
Title > Category dropdown > Tags > Submit button > navigation bar at top of page

This may seem a minor annoyance, which it is, but if you're used to the original NodeBB composer it does catch you out somewhat.

Thanks guys!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions