Comments (6)
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.
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.
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.
I checked iOS and it doesn't happen there, I guess you tried on iOS before?
from gooey.
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
from gooey.
I'm not able to reproduce this problem. Closing.
from gooey.
Related Issues (20)
- Trying to erase none utf8 characters throw errors HOT 4
- Input state machine doesn't include 'released_now' or 'clickable' fields on last frame HOT 13
- Scroll list flick
- Bug: If dynamic list becomes empty, items have invalid data attached HOT 3
- Missing return checkbox instance in set_checked or set_visible HOT 1
- Scrolling wheel speed option
- How can I change the theme ? HOT 2
- No typing input from Android browsers HOT 2
- Missed backspaces on iOS
- Grid component
- .nodes failing on list items in dynamic_list HOT 3
- Input widget's "deselected_now" property always false
- List data HOT 1
- Lists are not updated on list refresh since 10.0.0 HOT 2
- Fix for trailing spaces creates issues
- Dynamic List Refresh Behavior HOT 3
- Example project missing sprites and runtime errors HOT 4
- Radio parameter description missing
- Feature request: UI navigation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gooey.