Open dave-doty opened 2 months ago
Looks like the only way around this (since we are hosting from different sites) is to send a POST message from oxView to scadnano telling it about the key events: https://stackoverflow.com/questions/9393532/cross-domain-iframe-issue
If you click in the oxView window, that iframe takes the focus, and scadnano keyboard shortcuts no longer work even though we are listening on
document.body
, but perhaps iframes are considered not part of the body since they host a whole other webpage.Perhaps this is necessary, but the crazy thing is that if you click in the scadnano main view, even selecting strands and editing, it does not return the focus to scadnano, so pressing, e..g, delete, will delete the selected base in oxView rather than the selected strand in scadnano.
Focus can be restored by clicking on the menu or separators or other non-SVG.
However, ideally: