nuxt / nuxt/ui

[CommandPalette] move cursor to starting position in input box on pressing home

Open
#4,145 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

upstream/reka-ui
Dominant language
TypeScript
Stars
6.9k
Forks
1.1k
Avg merge
1d 7h
Merged PRs (30d)
57

Description

Description

hi,

test the use case here https://ui.nuxt.com/components/command-palette#with-custom-fuse-search

type any thing to search , move mouse up down , the options gets scroll , every thing is fine,
the use case is if user want to modify the input box query string, then user need to press arrow keys to go back to beginning of the input string , pressing Home does not work, i think pressing Home should take the cursor back to beginning of the input box!

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Command Palette custom Fuse Search example at the linked documentation URL and reproduce the behavior by entering a query and pressing Home. Trace the Command Palette input and keyboard handling; done means Home places the caret at the beginning of the query without breaking option navigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.