mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix: allow usage of ctrl key additionally to metakey
This commit is contained in:
@@ -139,7 +139,7 @@ export function CmdkDialog({ currentPackageName }: { currentPackageName?: string
|
||||
|
||||
useKey(
|
||||
(event) => {
|
||||
if (event.key === 'k' && event.metaKey) {
|
||||
if (event.key === 'k' && (event.metaKey || event.ctrlKey)) {
|
||||
event.preventDefault();
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user