flixel-ui
flixel-ui copied to clipboard
Impossible to type numbers in FlxInputText
Why is it impossible to type a number in a FlxInputText without a numeric pad? I'm developing on a laptop and it's really getting complicated to input numbers... Top row keyboard numbers gives only symbols, and shift key doesn't seems to work. I've tried on several keyboards and operating system without results. Is that a bug, a feature?
While waiting for something better, I'm converting alphabet letters to numbers: f = 6, y = 24... I really need help :)
OK... I've just discovered that this is working when the swf file is embedded in an html file. The bug only occurs with the FlashPlayer exe. I'll be fine, but I would like to know why is this behaving like this.
I think I know why. The standalone flash player has some "ignore shortcut keys" functionality or something that ignores certain keystrokes (but crucially, not in a deployed SWF), and if you're on a laptop .... any chance your numeric keys share a toggle with some weird function key or something?
You say you've tried several OS's and keyboards, but is it all through the same laptop, or have you tried different machines?
Do you get the same issue with a regular vanilla openfl TextField set to input mode outisde of a flixel context?
I knew that problem with the ESC key, but not with the numbers. I've tried with two laptops: a Dell XPS 13 (Xubuntu), an Asus Transformer T100 (Windows 10) and with my old ASROCK computer (classic keyboard / Windows 7). Same results everywhere... I'll try the regular vanilla TextField when I'll have some free time ;)
Also, does this still happen on a non-laptop?
Sorry, I should have been more specific: the ASROCK is a non-laptop.
Okay, so sounds like a more general problem than weird laptop keyboard input. We've been meaning to do a bit of a refactor on FlxInputText now that the underlying TextField input has been updated, I just haven't had the time to do it yet. Thanks for kicking this back onto the radar.