[r81]Textbox and Keyboard issue

Bugs will be moved here once resolved.

Post » Fri Mar 09, 2012 3:18 am

C2 r81 64bits; Intel Core i5-2500K @3.30 GHz (x4), 8 Go DDR3, NVIDIA GeForce GTX 560 Ti (driver 285.62), Win 7 Pro SP1
Firefox 10.0.2; Chrome 17.0.963.56 m

Provided capx

What is expected here is that after having inputed some text in the textbox, return is pressed to "hide" it.
What is happening is seemingly nothing.

I've added another test under the form of a single "on Return pressed" event to see if something happened.

If you press return on start of the layout without having given the focus to the textbox, Things appear to work as expected.

The bugfix for the previous issue I reported makes it so now that this keypress appears as not being taken into account at all.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Fri Mar 09, 2012 7:55 pm

Hmm, yeah, this is caused by the prior bug fix since the text box field handles all character input rather than Construct 2. So the text box receives the enter press and does nothing with it. Maybe I can add exception for certain keys, like enter and escape... any others?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Fri Mar 09, 2012 8:59 pm

Perhaps the ideal would be for the constructor to set it in the action.

I can't think of specific keys right now, but maybe at some point in the future, someone will come and need a specific key we wouldn't think of right now.

Maybe the Fsomething (F9,F10,F11,F12).
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Sat Mar 10, 2012 10:14 am

not sure what you guys feel about quick fixes, but this issue is rather problematic for me right now. An exception for Return key would be awesome as a quick fix.
B
7
S
2
G
4
Posts: 8
Reputation: 2,673

Post » Sun Mar 11, 2012 4:07 pm

Here's a fixed runtime.js for Textbox that will be in the next build:
http://dl.dropbox.com/u/15217362/textbox-keyfix.zip
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Sun Mar 11, 2012 9:34 pm

I can confirm the fix seem to work in ff 10.0.2 and chrome 17.0.963.79 m
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests