θΏ™ζ˜―indexlocζδΎ›ηš„ζœεŠ‘οΌŒδΈθ¦θΎ“ε…₯任何密码
Skip to content

Conversation

@timothycarambat
Copy link
Member

Pull Request Type

  • ✨ feat
  • πŸ› fix
  • ♻️ refactor
  • πŸ’„ style
  • πŸ”¨ chore
  • πŸ“ docs

Relevant Issues

resolves #2019
closes #4402

What is in this change?

When the slash command modal is mounted, allow the user to easily use the keyboard up/down arrows to navigate to their desired command.

When an element is foucused and Enter is pressed, it will emulate clicking of the DOM element.

Additional Information

  • Extracted to a hook useSlashCommandKeyboardNavigation

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

@timothycarambat timothycarambat merged commit be82f91 into master Oct 15, 2025
@timothycarambat timothycarambat deleted the 2019-slash-command-keyboard-nav branch October 15, 2025 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT]: Enhanced Keyboard Navigation for Preset Prompts Menu

2 participants