Code Monkey home page Code Monkey logo

Comments (6)

britzl avatar britzl commented on July 18, 2024

I tried to reproduce this but failed. I need a bit more info:

  • Android and iOS?
  • Which keyboard config do you use gui.KEYBOARD_TYPE_DEFAULT?
  • Are you using the use_marked_text config setting on the input field and if so which value (true or false)?
  • Which keyboard are you using? Default Google keyboard or something else?

from gooey.

Jerakin avatar Jerakin commented on July 18, 2024

I used the gooey example project, happens in all fields that take character input. Only tried it on Android (two different). Android version 10 (both).

Engine 1.2.171

from gooey.

Jerakin avatar Jerakin commented on July 18, 2024

I also noticed that I can do
12. and click space to get 12.1212. so I don't need to do "two character" after the . to get it to expand.

from gooey.

Jerakin avatar Jerakin commented on July 18, 2024

I checked iOS and it doesn't happen there, I guess you tried on iOS before?

from gooey.

Jerakin avatar Jerakin commented on July 18, 2024

I have some good news and some bad news!

Good news first, I don't think this is Gooeys fault. The bad news are that I think it's Defold fault.

I made a simple test project with only this gui_script in it

function init(self)
	msg.post(".", "acquire_input_focus")
	gui.show_keyboard(gui.KEYBOARD_TYPE_DEFAULT, false)
	self.str = ""
end


function on_input(self, action_id, action)
	if action_id == hash("text") then
		self.str = self.str .. action.text
		print(action.text, self.str)
		gui.set_text(gui.get_node("text"), self.str)
	end
end

When I write the string 12.345 this is what happens character by character:
1
DEBUG:SCRIPT: 1 1
2
DEBUG:SCRIPT: 2 12
.
DEBUG:SCRIPT: . 12.
3
DEBUG:SCRIPT: 3 12.3
4

5
DEBUG:SCRIPT: 12.345 12.312.345

When I write 4 the log doesn't say anything

Test project

from gooey.

britzl avatar britzl commented on July 18, 2024

I'm not able to reproduce this problem. Closing.

from gooey.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.