Group related buttons

JavaScript · Intermediate · Quotes · opening lines · indenting · builds on Reshape without retyping

Give a row of buttons a container of their own so the row can wrap, and keep their order and handlers.

Task

File: src/editor/EditorToolbar.jsx

What to do

    0keys

    Keyboard shortcuts
    Ctrl+Enter
    Check the result
    Ctrl+Alt+U
    Undo the last change
    Ctrl+Alt+H
    Show the next hint
    Ctrl+Alt+R
    Start this challenge again
    Ctrl+Alt+N
    Another challenge
    Ctrl+Alt+K⌃⌥K
    Show the keyboard shortcuts
    Ctrl+Alt+F⌃⌥F
    Turn focus mode on or off
    Ctrl+Alt+S⌃⌥S
    Open the editor settings
    Enter
    Go on to another challenge after you finish

    The Ctrl+Alt shortcuts don't clash with Vim's own keys. On a Mac, use Control and Option.

    Your textVim mode: Normal

    Make it look like this

    Your text is saved in this browser as you edit. Finished challenges count toward your progress, and they sync to your account when you're signed in.