|
@@ -60,6 +60,17 @@ static void SDLCALL SDL_HideHomeIndicatorHintChanged(void *userdata, const char
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
+@implementation SDLUITextField : UITextField
|
|
|
+- (BOOL)canPerformAction:(SEL)action withSender:(id)sender
|
|
|
+{
|
|
|
+ if (action == @selector(paste:)) {
|
|
|
+ return NO;
|
|
|
+ }
|
|
|
+
|
|
|
+ return [super canPerformAction:action withSender:sender];
|
|
|
+}
|
|
|
+@end
|
|
|
+
|
|
|
@implementation SDL_uikitviewcontroller
|
|
|
{
|
|
|
CADisplayLink *displayLink;
|
|
@@ -68,7 +79,7 @@ static void SDLCALL SDL_HideHomeIndicatorHintChanged(void *userdata, const char
|
|
|
void *animationCallbackParam;
|
|
|
|
|
|
#if SDL_IPHONE_KEYBOARD
|
|
|
- UITextField *textField;
|
|
|
+ SDLUITextField *textField;
|
|
|
BOOL hardwareKeyboard;
|
|
|
BOOL showingKeyboard;
|
|
|
BOOL rotatingOrientation;
|
|
@@ -252,7 +263,7 @@ static void SDLCALL SDL_HideHomeIndicatorHintChanged(void *userdata, const char
|
|
|
- (void)initKeyboard
|
|
|
{
|
|
|
obligateForBackspace = @" "; /* 64 space */
|
|
|
- textField = [[UITextField alloc] initWithFrame:CGRectZero];
|
|
|
+ textField = [[SDLUITextField alloc] initWithFrame:CGRectZero];
|
|
|
textField.delegate = self;
|
|
|
/* placeholder so there is something to delete! */
|
|
|
textField.text = obligateForBackspace;
|