Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iphone keyboard doesn't send 'return' and 'backspace' events #294

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

iphone keyboard doesn't send 'return' and 'backspace' events #294

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: HG 2.0
Reported for operating system, platform: iOS (All), iPhone/iPod touch

Comments on the original bug report:

On 2010-07-16 18:06:41 +0000, Vittorio Giovara wrote:

Created attachment 517
fix the missing return event

my application builds a chat system so that users write and send their messages by pressing ENTER.
however i noticed that the ENTER event does never get sent from an iphone/ipad keyboard, thus no message can be sent. I've attached a small patch that fixes this, i used the 13th slot because it's the "carriage return" value in the ashii table.

another issue, also the BACKSPACE has problems: when the keyboard appears it works fine, but if it gets hidden no more backspace are sent. Unfortunately i don't have a patch to fix this, but i hope that it can be fixed.

On 2010-07-16 18:22:44 +0000, Vittorio Giovara wrote:

Created attachment 518
fix the missing return event (and a compiler warning)

sorry, i uploaded a corrupted patch; here is the one working against latest hg revision.

On 2010-07-17 06:14:00 +0000, Vittorio Giovara wrote:

upon further inspection, also the RETURN event I added is sent only the first time the keyboard appears.
My guess is that there must be some kind of corruption in sending the RETURN and BACKSPACE event (the event is not really generated, so the problem shouldn't be in receiving events)

On 2010-09-23 01:22:23 +0000, wrote:

It seems that textField (SDL_uikitview.m) doesn't call it's delegate when backspace key is pressed, but the keypress DOES erase content from textField (can be easily checked if you assign dummy text to textField.text property). It always happens after the second call to showKeyboard during the application runtime.

On 2011-02-01 02:25:48 +0000, Vittorio Giovara wrote:

Created attachment 564
fix return, backspace and multiple calls to keyboards

i have attached an updated patch that fixes this behaviour

On 2011-02-01 09:05:20 +0000, Sam Lantinga wrote:

Thanks for the patch!
http://hg.libsdl.org/SDL/rev/c63b901d97ab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant