Bug with CMD
paulocastellano opened this issue · comments
Paulo Castellano commented
Hello,
I got a bug in this sequence:
- CMD + P (open modal) ✅
- Esc close modal ✅
- Only CMD, OPEN modal ❌ (BUG)
useHotkey([
{
keys: ["Meta", "p"],
preventDefault: true,
handler: (keys) => {
console.log("111");
this.openGlobalSearch();
},
},
{
keys: ["Control", "p"],
preventDefault: true,
handler: () => {
console.log("123");
this.openGlobalSearch();
},
},
]);
Yugang Cao commented
I will check it
Yugang Cao commented
I use mac and I did not reproduce this problem, can you use sandbox to reproduce it?