Hello together.
Seems like a noob question and surely is. Ive tried, really, but somehow i cant make it work.
I have a toolbar plugin, very simple. It shows an iframe with a website. All the JS is done on that page, so i dont have to code twice for the same thing.
Now one can enter lets say an icao code into a textfield on that page. And of course this shouldnt trigger the sim keybindings.
Ive tried various ways now to disable them, like preventDefault() targeted at the UI element of the window etc. But for whatever reason it doesnt seem to work.
Do you have a tip how i can do that? I cant seem to find much about this in the sdk docu.
I have this so far. That would work for ingame UI input fields (such ive created via my own script in the toolbar code). But that doesnt target iframes it seems.
The issue is the iframe. I would know how to do it, with own UI elements. But in an iframe the usual way to terget the elements doesnt seem to work.
Seems like a noob question and surely is. Ive tried, really, but somehow i cant make it work.
I have a toolbar plugin, very simple. It shows an iframe with a website. All the JS is done on that page, so i dont have to code twice for the same thing.
Now one can enter lets say an icao code into a textfield on that page. And of course this shouldnt trigger the sim keybindings.
Ive tried various ways now to disable them, like preventDefault() targeted at the UI element of the window etc. But for whatever reason it doesnt seem to work.
Do you have a tip how i can do that? I cant seem to find much about this in the sdk docu.
I have this so far. That would work for ingame UI input fields (such ive created via my own script in the toolbar code). But that doesnt target iframes it seems.
Code:
this.ingameUi.addEventListener("focus", OnInputFieldFocus);
this.ingameUi.addEventListener("blur", OnInputFieldUnfocus);
The issue is the iframe. I would know how to do it, with own UI elements. But in an iframe the usual way to terget the elements doesnt seem to work.
Last edited:
