solid-primitives icon indicating copy to clipboard operation
solid-primitives copied to clipboard

[keyboard] shortcuts trigger default actions second time

Open Ehesp opened this issue 2 years ago • 3 comments

Hey,

When I setup the following shortcut (on Mac):

createShortcut(['Meta', 'P'], () => {
    console.log('Pressed Meta + P');
});

Pressing this combo works fine, however if I fully let go, and press it again the native browser "Print" dialog will popup. I close it, press the combo again and it works fine, press again and the dialog opens (and so on...).

I've tried with requireReset on both true and false but the behaviour is the same.

This behaviour is the same on "Meta + S" too.

Ehesp avatar Dec 08 '22 15:12 Ehesp