Skip to content

SDL_TextInputEvent.Text doesn't respect SDL_TextInputType? #14765

@LloydJHowarth

Description

@LloydJHowarth

Using SDL_StartTextInputWithProperties you can specify a SDL_TextInputType such as SDL_TEXTINPUT_TYPE_NUMBER this is great for mobile platforms since the on screen keyboards limits the output of what SDL_TextInputEvent.text could be because the screen keyboard only displays the characters associated with numbers, letters, symbols based on the SDL_TextInputType

But since desktop platforms use the keyboard they completely ignore the SDL_TextInputType and output whatever was pressed to SDL_TextInputEvent.text

Is there a way to enforce the type so the SDL_TextInputEvent.text only displays what was allowed when providing a type with SDL_StartTextInputWithProperties or am I just best off building my own TextInput system myself?

Thanks!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions