mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-24 06:51:55 +00:00
I handle command+C and command+V shortcuts for copy/paste from clipboard using
SDL_GetClipboardText/SDL_SetClipboardText. But on iOS command+V shortcut is
also handled by system, so that I also get textinput event with that clipboard
text. And thus the application gets this clipboard text twice (from
SDL_GetClipboardText and from textinput event).
I assume that intended behavior is that command+V shouldn't generate textinput
events. At least as far as I know ctrl+V on other platforms does nothing. This
commit disables paste action for UITextField, so that textinput event isn't
generated anymore.
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| SDL_uikitappdelegate.h | ||
| SDL_uikitappdelegate.m | ||
| SDL_uikitclipboard.h | ||
| SDL_uikitclipboard.m | ||
| SDL_uikitevents.h | ||
| SDL_uikitevents.m | ||
| SDL_uikitmessagebox.h | ||
| SDL_uikitmessagebox.m | ||
| SDL_uikitmetalview.h | ||
| SDL_uikitmetalview.m | ||
| SDL_uikitmodes.h | ||
| SDL_uikitmodes.m | ||
| SDL_uikitopengles.h | ||
| SDL_uikitopengles.m | ||
| SDL_uikitopenglview.h | ||
| SDL_uikitopenglview.m | ||
| SDL_uikitvideo.h | ||
| SDL_uikitvideo.m | ||
| SDL_uikitview.h | ||
| SDL_uikitview.m | ||
| SDL_uikitviewcontroller.h | ||
| SDL_uikitviewcontroller.m | ||
| SDL_uikitvulkan.h | ||
| SDL_uikitvulkan.m | ||
| SDL_uikitwindow.h | ||
| SDL_uikitwindow.m | ||