Code keeps duplicating when I click it

Godot Version

4.3

Question

I’m very new to godot and and I don’t have an laptop. I found godot about a few weeks ago and downloaded it on my tablet so I could start learning how to make games, but I’ve ran into a problem.

When where I’m working on the script for the player, the code starts to randomly duplicate itself when I start clicking on line 9 and under. It eventually crashes after a few clicks. I tried searching about this but haven’t found anyone having this problem.

I have no idea what to do and why this is happening and I just really would like some help.

Does this happen from time to time or always?

The source code editor has the functions Duplicate Selection and Duplicate Lines in the Edit menu.

But I couldn’t reproduce it on my Samsung tablet; just clicking somewhere on the text wasn’t enough.

What kind of tablet do you have, which Android version, etc.? What does your virtual keyboard look like? The keyboard app can also be changed if the keyboard app is responsible for the problems.

You could also check the “Shortcuts” settings, adjust / delete.

Sorry for the late reply!
It happens all the time, mainly when I’m trying to code for the player. I have a Samsung Galaxy Tab S6 lite.

This is what my Keyboard looks like

I tried editor settings, but that didn’t work.

Ok, I have Tab S7, I couldn’t reproduce it. (version 4.3)

Does this also happen in the new version?

Tried 4.4 but nothing changed. :frowning:
Also tried changing a few settings with my Keyboard, but no difference there.

I could compile a version for you later and suppress these 2 functions, would you like to try it?

image

I would love that please! Anything to find a solution!

53 MB Download: android_editor-android-debug.apk - Google Drive

changes

It is a debug version "Godot Editor 4 (debug)". The official version is not overwritten.

Screenshot 2024-10-29 220447

Do you see any output in the “Output” window?

I have this same problem on my Galaxy A14. Clicking code parts causes the addition of extra tabs, not line duplication. Like literally, clicking on a piece of code causes it to zoom off the screen with extra added tabs. It’s kinda funny but frustrating.

Do you use any other keyboard than the default samsung one? I just downloaded Google’s keyboard and this doesn’t happen…

It’s repeating this.

Try a different keyboard, bud. Like I mentioned above, downloading the Google keyboard completely eliminated the issue for me.

This still needs to be fixed by the developers, but at least you have a workaround for now.

1 Like

Okay, I tried the google keyboard and everything crashed on me. I had to restart my tablet. Good news is it’s not duplicating anymore and I can use my regular keyboard. Kinda bad news is idk what even happened.

Hopefully it doesn’t happen again!

1 Like

Which Android version are you using? I couldn’t reproduce it on Samsung Tab S7, Android 13, Samsung Keyboard App (German Layout).

The issue should be reported on Github: android duplicate Text

Probably still unknown. The Android developers often can’t fix it until they can reproduce the problems themselves.