Praytic / youtd2

Classic community-driven session-based Tower Defense game with RPG elements.
https://youtd2.com/
MIT License
97 stars 17 forks source link

Can't copy and paste exp password in html5 #418

Open Kvel2D opened 6 months ago

Kvel2D commented 6 months ago

This issue is not present on native builds.

basxto commented 6 months ago

On Firefox 124.0.2 (64-bit) on Linux it works for me. I needed to copy the string multiple times for it to work.

I didn’t get middle-click pasting working, that works on native.

On Chromium 123.0.6312.105 I can’t get copy or paste working. Or rather I could only paste what I copied in that page.

It seems browsers generally have some difficulties with copy-paste. https://docs.godotengine.org/en/stable/tutorials/export/exporting_for_web.html#clipboard

Edit: Chromium throws

Probably related issue: https://github.com/godotengine/godot/issues/81252

Kvel2D commented 6 months ago

Thanks for the info! WiIl look into this later but for now I've added a warning message about this issue to exp password menus so players know that they might need to manually type the password.

basxto commented 6 months ago

it might be possible to circumvent this with down/uploading a text file or javascript prompts (with default values)

TinyTakinTeller commented 2 months ago

it might be possible to circumvent this with down/uploading a text file or javascript prompts (with default values)

I found that making a custom html/js/css DOM element and then spawning it via JavaScriptBridge.eval is a pretty decent workaround.

See: https://github.com/godotengine/godot/issues/83752#issuecomment-2322229670