flixel-ui icon indicating copy to clipboard operation
flixel-ui copied to clipboard

Impossible to type numbers in FlxInputText

Open Txori opened this issue 10 years ago • 6 comments
trafficstars

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 :)

Txori avatar Sep 12 '15 22:09 Txori

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.

Txori avatar Sep 15 '15 09:09 Txori

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?

larsiusprime avatar Sep 15 '15 15:09 larsiusprime

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 ;)

Txori avatar Sep 15 '15 19:09 Txori

Also, does this still happen on a non-laptop?

larsiusprime avatar Sep 15 '15 20:09 larsiusprime

Sorry, I should have been more specific: the ASROCK is a non-laptop.

Txori avatar Sep 15 '15 20:09 Txori

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.

larsiusprime avatar Sep 16 '15 13:09 larsiusprime