mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 09:36:27 +00:00
editor: finish remove hack TODO
The upstream fix was merged, so the workaround is no longer needed.
This commit is contained in:
committed by
David Lechner
parent
764083e6be
commit
db438be40b
@@ -58,6 +58,10 @@ const specialCases: Record<string, string> = {
|
||||
function addWhichToKeyboardEvent(e: KeyboardEvent) {
|
||||
// blueprints and testing-library both don't do this one
|
||||
if (e.key === 'ContextMenu') {
|
||||
// HACK: work around lack of ContextMenu key support in user-events
|
||||
if (e.target !== null) {
|
||||
e.target.dispatchEvent(new MouseEvent('contextmenu', { bubbles: true }));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user