[Mobile | App & Browser]
When I tap on my ‘Text Input’ Object, an unwanted Virtual Keyboard appears.
This obscures half the screen on Mobile, and forces the game resolution to shrink on Mobile Browsers.
How do I disable the Virtual Keyboard, without setting the Text Input Object to ‘read-only’?
It is unwanted because the TIO is only meant for copying and pasting, no typing is required.
Not only is the Keyboard unneeded, it also takes up a ton of space.
[Mobile | Browser only]
When attempting to copy/paste on the TIO, the game resolution shrinks down, as to not be overlapped by the Keyboard (which I don’t even want in the first place).
The Keyboard should be disabled.
I believe this would also solve the resolution shrinkage problem on Mobile Browsers.
The TIO should not be set to ‘read-only’.
While it’s true that ‘read-only’ would prevent the Keyboard from appearing…
… When the TIO is read-only, users on Browser (PC & Mobile) would have no option to paste into the TIO when attempting to Join a Server, since Browsers have only restricted access to the Clipboard.
[Alternate Solution (if possible)]
Setting the TIO to read-only, so to disable the Keyboard…
… But somehow also enabling Browsers to access the Clipboard for copying and pasting.
Actually, I’ve already had both extensions installed.
The ‘Clipboard’ extension is wonderful!
It works perfectly when the game is exported into Apps for PC & Mobile. However, it doesn’t work on Browsers…
The ‘Mobile Virtual Keyboard’ (MVK) extension only works on ‘Text Entry’ Objects…
…which are different from ‘Text Input’ Objects (TIOs).
I’ve even attempted to modify the MVK extension’s Behaviour Functions to work on TIOs.
But I haven’t managed to accomplish the desired outcome.
Also, I can’t switch my TIO into a Text Entry Object.
This is because the latter doesn’t have an Input Field, which is required for pasting text on Browser.
One way I’ve managed to disable the keyboard, is by setting the TIO to ‘Read-only’.
However…
Meaning that while users may still copy text from the TIO, they can’t paste text into the Input Field when it’s Read-only.
Yes, this disables the Keyboard, but ultimately renders my TIO unusable on Browser.
[Browser]
The ‘Clipboard’ extension doesn’t work on Browser…
…But pasting can still be done onto a TIO by Right-clicking/Tap-and-Holding the Input Field, then selecting ‘Paste’.
This method would probably never work on ‘Text Entry’ Objects however, since they don’t seem to have an Input Field.
[Mobile]
I’m not sure if there’s a way to paste text into any Input Field, without necessarily also triggering the Virtual Keyboard on Mobile…
…unless the Keyboard is suppressed somehow.
Hi again, I opened your game in my laptop browser, copied the server id and sent it to myself and then opened the game on my android phone and pasted in the code and the game went back to full screen after I dismissed the keyboard unlike what you experienced above. It seemed like everything worked correctly for me although I didn’t actually play the game.
I also tried to think of a way to just use a button to paste in the clipboard code. My idea was to touch/click a paste button and then the content of the clipboard (I typed and copied a word into a text editor first) would paste into a text box. I tried pasting to the input box as well. But anyway, when I clicked the paste button it just made the two texts change to zero/0. I don’t know what that means but clearly something wasn’t right.
And the text input object wouldn’t even let me type into it in my laptop browser but did in my phone browser. Which isn’t relevant to you, but anyway.
Here’s what I tried. That’s all for me, bedtime, haha.
Folks, please don’t bump year old threads with very obvious chatGPT responses. ChatGPT will not have accurate information for GDevelop, and even much of its Javascript and browser modification data is usually inaccurate.