algolia / algolia/docsearch

Can the shortcut keys be modified through configuration?

Open
#2,148 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.4k
Forks
439
Avg merge
14h 32m
Merged PRs (30d)
19

Description

## Describe the problem

My website uses Algolia search and it works well. I also use an AI assistant on the website, and I found that when users input '/', it opens the Algolia search box. It seems to be a shortcut key conflict. Is there any way to disable the '/' shortcut key or can I assign it to another shortcut key?

## Describe the solution

Provide a configuration that can modify shortcut keys, such as `openShortcutKey: '/'`.

## Alternatives you've considered

Or, it can control the validity of shortcut keys through coding, and in some cases, it can temporarily disable shortcut keys.

Contributor guide

Open the contributing guide

Research direction

No files or tests are named. Start by locating the search UI's '/' shortcut handling and the existing configuration entry points, then review the issue discussion for the intended API. Done means users can disable or remap the shortcut, with the behavior covered by appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, search
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.