NimbleKit - fast iOS app development

Event for the enter key?

Please post here if you think only NimbleKit developers can solve your problem

Event for the enter key?

Postby stalkerX » Thu Jun 17, 2010 11:14 am

Hi.

I use NKTextField to display the text field. How can I catch the pressing of the enter key on keyboard?

Thanks.
stalkerX
 
Posts: 12
Joined: Fri Jun 04, 2010 12:20 am

Re: Event for the enter key?

Postby sunny » Thu Jun 17, 2010 11:42 am

there is already a request for that in bug tracker, there will be a callback to do that.
User avatar
sunny
Staff
 
Posts: 2666
Joined: Sat May 30, 2009 5:18 am
Location: Palo Alto, California

Re: Event for the enter key?

Postby stalkerX » Tue Jun 22, 2010 3:12 pm

Does the new version fixed the bug?
stalkerX
 
Posts: 12
Joined: Fri Jun 04, 2010 12:20 am

Re: Event for the enter key?

Postby sunny » Tue Jun 22, 2010 3:29 pm

no, it wasn't fixed, however 1.9.1 is coming right after with couple important bugfixes, including this issue.
User avatar
sunny
Staff
 
Posts: 2666
Joined: Sat May 30, 2009 5:18 am
Location: Palo Alto, California

Re: Event for the enter key?

Postby stalkerX » Tue Jun 22, 2010 3:29 pm

Thanks, sunny.
stalkerX
 
Posts: 12
Joined: Fri Jun 04, 2010 12:20 am

Re: Event for the enter key?

Postby sunny » Tue Jun 22, 2010 3:33 pm

you can follow the progress on this ticket: http://www.nimblekit.com/bugs/view.php?id=124
User avatar
sunny
Staff
 
Posts: 2666
Joined: Sat May 30, 2009 5:18 am
Location: Palo Alto, California

Re: Event for the enter key?

Postby Guia » Sat Nov 27, 2010 1:57 am

Sorry to resurrect this thread, but any news on this issue considering 1.9.4 is out?
Guia
 
Posts: 1
Joined: Fri Nov 26, 2010 9:28 pm

Re: Event for the enter key?

Postby ianozia » Wed Jun 29, 2011 6:43 am

Hello.
I understand this is an old topic, however I am also running into the problem of not having a callback on return. Has this been resolved? If so, how would I go about using this callback? The use of the return key is vital to my application, thanks.
ianozia
 
Posts: 3
Joined: Wed Jun 29, 2011 6:35 am

Re: Event for the enter key?

Postby Big-O » Wed Jun 29, 2011 8:32 am

This has not been added yet, at least according to the documentation.

However, you can use the javascript onKeypress event to capture that. The return button fires 13:

Code: Select all
<input type="text" onKeypress="NKAlert('You Pressed:' ,event.keyCode);" />
-- Big-O
-- Nimblekit Guru, Web Developer, Hopeless Geek

I do freelance!
http://realisticweb.com
User avatar
Big-O
NimbleKit Guru
 
Posts: 1231
Joined: Thu Sep 24, 2009 4:02 am

Re: Event for the enter key?

Postby ianozia » Wed Jun 29, 2011 4:06 pm

Big-O wrote:This has not been added yet, at least according to the documentation.

However, you can use the javascript onKeypress event to capture that. The return button fires 13:

Code: Select all
<input type="text" onKeypress="NKAlert('You Pressed:' ,event.keyCode);" />

Hello,
Thank you for the speedy reply.

However, my app has extensive use of the NKTextField rather than HTML input forms. Would this still be possible, or would I have to rewrite the application using forms instead of NKTextField objects? There must be a way of knowing, could I use setTextChangeCallback to somehow detect if keycode 13 was the last input?
ianozia
 
Posts: 3
Joined: Wed Jun 29, 2011 6:35 am

Next

Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests