uidotdev / usehooks

A collection of modern, server-safe React hooks – from the ui.dev team

Home Page:https://usehooks.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

useKeyPress doesn't take multiple keys

rdeusser opened this issue · comments

Found this hoping I could use multiple keys, but that doesn't seem to be the case.

I've tried the following variations:

useKeyPress("Control k", onKeyPress)
useKeyPress("Control+k", onKeyPress)
useKeyPress("Control + k", onKeyPress)

Am I missing something or does usehooks not support multiple keys?