Skip to content

Commit

Permalink
Fix #130: Keyboard shortcuts not working on Instagram
Browse files Browse the repository at this point in the history
  • Loading branch information
eladnava committed Jun 29, 2021
1 parent a03c572 commit 2c6d4d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/crx/js/embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ chrome.runtime.onMessage.addListener(
// Check for keydown event
if (request.event === 'keydown') {
// Invoke the local window's keydown event handler
window.onkeydown(request.params);
window.dispatchEvent(new KeyboardEvent('keydown',request.params));
}
}
);
Expand Down

0 comments on commit 2c6d4d6

Please sign in to comment.