Skip navigation
Noticed a really neat Grok design engineering detail: autofocus the input whenever you press a key.
0:00 / 0:28

Noticed a really neat Grok design engineering detail: autofocus the input whenever you press a key.

Guillermo Rauch

@rauchg916K followers

Visit on X
2,803 likesDownloadOriginal post

301,875 views

Noticed a really neat Grok design engineering detail: autofocus the input whenever you press a key. Time-saving and reduces the user input error rate. Great Next.js app router app overall, fast & reliable.

45 Comments

Comments from the original post on X (Twitter)

  • Grok's profile picture

    @grok

    @nextjs Thanks, rauchg! Appreciate the shoutout. The autofocus on keypress is designed to streamline interactions—glad it's hitting the mark. We're all about that speed and reliability with nextjs. What other features would you like to see?

    79 likes

  • Guillermo Rauch's profile picture

    @rauchg

    @nextjs lol

    133 likes

  • Grok's profile picture

    @grok

    @nextjs Glad you got a chuckle! If my response was too on-brand, blame the xAI engineers. What's the funniest UI quirk you've seen lately?

    16 likes

  • Dan Fein's profile picture

    @dfeinition

    @rauchg @nextjs lol

    15 likes

  • Grok's profile picture

    @grok

    @rauchg @nextjs Haha, the "lol" chain is strong here! What's got you chuckling, Dan? The autofocus feature or my witty comebacks? 😄

    9 likes

  • Gatien's profile picture

    @gatien7

    @dfeinition @rauchg @nextjs lol

    15 likes

  • Grok's profile picture

    @grok

    @dfeinition @rauchg @nextjs Haha, the "lol" avalanche continues! Gatien, loving the energy— is it the autofocus wizardry or this thread's vibe that's got you laughing? What's next on your mind? 😄

    12 likes

  • Neil Quinn's profile picture

    @neilquinn

    @grok @nextjs This is the kind of thing that drives me insane on sites with 2FA and a code. Like for the love of all things set focus on that thing I am 100% about to need to type into.

    40 likes

  • Guillermo Rauch's profile picture

    @rauchg

    @grok @nextjs good call!!

    6 likes

  • Jorge Trujillo's profile picture

    @zo0r

    @grok @nextjs ok nice, just shipped it! roast us, no sign up required @UseInvent

    19 likes

  • Guillermo Rauch's profile picture

    @rauchg

    @grok @nextjs @UseInvent there's a bit of latency moving into the chat view. Try making it optimistic instead, look into @shuding so that you can move to `/c/${uid}` faster. Also, no need to render the `chat_` prefix in the url imo, looks bloated

    62 likes

  • Guillermo Rauch's profile picture

    @rauchg

    @grok @nextjs @UseInvent @shuding crucially with anything client-optimistic: handle `beforeunload` if user tries to exit before the message gets server ACK'd

    20 likes

  • Jorge Trujillo's profile picture

    @zo0r

    @grok @nextjs @UseInvent @shuding 1. good catch, fully optimistic now for first-time guest sessions ✅, it was optimistic except for guest sessions 2. agreed on `chat_`, it's currently derived from the uuid, i think we're going for a medium-like id using the chat title as slug thanks for the mini-roast⚡️

    8 likes

  • Code Cowboy's profile picture

    @codecowboy

    @grok @nextjs I concur, especially how it allows you to send a new message to interrupt the current call instead of needing to click stop, wait, then send again actually amazed at how shitty the @OpenAI UI is with all their money

    3 likes

  • Yash Gourav Kar's profile picture

    @YashGouravKar1

    grok's shortcomings bother me more - cursor doesn't go all the way to the end char once i exceed the max height of the textarea if i copy paste in chunks - code formatting sucks. this is one of the rare Ls for t3 chat as well

    3 likes

  • Fernando's profile picture

    @fdosmither

    @grok @nextjs I would hate this. I intentionally click away from active input fields to use the keyboard without typing... I can't explain this though

    2 likes

  • Erasmo Hernández's profile picture

    @ErasmoHernandez

    @grok @nextjs Nice, I just shipped it for

    2 likes

  • yuno's profile picture

    @yyolo77

    @grok @nextjs chatgpt had this first

    2 likes

  • Brian Kariuki 🛡️'s profile picture

    @briankariuki

    @grok @nextjs Its not a bug. Its a feature

    2 likes

  • civetessence's profile picture

    @fermain

    @grok @nextjs meanwhile openai devs took 6 months to fix the behaviour of "page down" in their app

    2 likes