We are not worthy
Let me know if there is something I can do on my side with css too.
We are not worthy
Let me know if there is something I can do on my side with css too.
Hey @FManga I found this worked:
<script>
window.addEventListener("keydown", function(e) {
// space and arrow keys
if([32, 37, 38, 39, 40].indexOf(e.keyCode) > -1) {
e.preventDefault();
}
}, false);
</script>
But if I implement that across the site, you can never use the arrows. If put that on your page, I think when it has focus, it should pass through?
If not, I’ll write some script to detect when the iframe has focus.
EDIT:
It might work if I target the iframe DOM element instead of the window for event listener too perhaps… but I don’t think so I think only the window has those routines?
I think I’d have to put that inside the iframe, though it might work on the iframe itself.