question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does Mousetrap support catch event in iframe?

See original GitHub issue

I have a rich text editor in my app, the editor is implemented as a iframe, i try to catch event in it but seem no effect(i added the “mousetrap” as class).

<iframe class="ke-edit-iframe" hidefocus="true" frameborder="0" style="width: 100%; height: 390px;">
#document
<html>
<head><meta charset="utf-8"><title></title>
<style>
</style>
</head>
<body class="ke-content mousetrap">the content....</body>
</html>
</iframe>

Issue Analytics

  • State:open
  • Created 10 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mightyiamcommented, Nov 19, 2014

My fork, https://www.npmjs.org/package/combokeys, has this feature:

var combokeys = new Combokeys(document.getElementById("someIframeOrSomething"));

And then your combokeys instance is bound to that element.

0reactions
mightyiamcommented, Nov 15, 2014

+1 on #235 . Thank you, @Craga89 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Detect mousemove when over an iframe? - Stack Overflow
Iframes capture mouse events, but you can transfer the events to the parent scope if the cross-domain policy is satisfied. Here's how:
Read more >
How to detect mousemove event over iframe element
Demonstrates solution for a problem with handling mousemove event over iframe element.
Read more >
IndyMojo Presents: Altered Thurzdaze w/ TRUTH | The Mousetrap ...
Truth has built this performance presence through DJ support from Mala, Skream, Youngsta, Hatcha and N-Type, to name a few, giving their music...
Read more >
Can FullStory capture content that is presented in iframes?
Yes, FullStory can work seamlessly with most iframes ! Depending on your scenario, capturing iframe content may require some additional configuration.
Read more >
Mousetrap-2 - Little Village
Mousetrap -2. Posted on Aug 10, 2019 by Genevieve Trainor. Post navigation. Giving Tree's new owners kick off their first season with 'The...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found