How to focus on input with hotkey while using Autocomplete + React #1185
Answered
by
dhayab
meotimdihia
asked this question in
Q&A
-
In this example: I want to use "Ctrl + K" to trigger a modal to search things. But it looks like the documentation doesn't mention this problem. https://www.algolia.com/doc/ui-libraries/autocomplete/integrations/using-react/ Please help me. |
Beta Was this translation helpful? Give feedback.
Answered by
dhayab
Sep 8, 2023
Replies: 1 comment 3 replies
-
Hi, you can use any hotkey library to listen to keyboard events and execute |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In detached mode you need to specify
openOnFocus: true
as well. This should keep the detached panel open.