Doesent recognize keypress when mouse button is hold
Do you happen to have a minimal example to recreate this unexpected behavior?
I just pushed a test case to the main branch to confirm the expected behavior but unfortunately wasn't able to reproduce the unexpected behavior.
Do you happen to have a minimal example to recreate this unexpected behavior?
I just pushed a test case to the main branch to confirm the expected behavior but unfortunately wasn't able to reproduce the unexpected behavior.
The actual problem was with drag and drop. Keypress cannot be detected while dragging some item. But I think its the limitation of the HTML rather than the libary.
I'll do some more digging around this. Do you know which browser specifically was causing this issue? Are you using any specific libraries for drag and drop?
I would imagine we would still be able to capture keypresses while dragging an item but there could be a number of factors at play. For example, the drag and drop library used could be registering it's own key event listeners and stopping the propagation of those events. If that was the case, there would be little we could do.
I'll do some more digging around this. Do you know which browser specifically was causing this issue? Are you using any specific libraries for drag and drop?
I would imagine we would still be able to capture keypresses while dragging an item but there could be a number of factors at play. For example, the drag and drop library used could be registering it's own key event listeners and stopping the propagation of those events. If that was the case, there would be little we could do.
The browser I am using is opera, so it should be reproducible on every chromium-based browsers (tried in edge as well). The conclusion that I have come to, is that the browser native drag-n-drop api prevents any keypresses while dragging. Another thing I did, is that I used polyfills for dragndrop for mobile, and by using devtools' mobile emulator, I was successul in detecting a key press while dragging, so maybe it helps somehow.
Thank you for the follow up.
I wasn't able to produce in tests; however, I haven't had a chance to create a minimal working example of the problem in an actual project.
That said, I'll leave this issue open for now in the interest of transparency to others. If you have a minimal example that I could test on, I would be happy to look further into it.