Improve soft-keyboard handling

This commit is contained in:
Cameron Gutman
2020-11-01 20:47:14 -06:00
parent e809afdd9e
commit bf36eaf661

View File

@@ -53,6 +53,10 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
TemporarySettings* settings = [[[DataManager alloc] init] getSettings];
keyInputField = [[UITextField alloc] initWithFrame:CGRectZero];
[keyInputField setKeyboardType:UIKeyboardTypeASCIICapable];
[keyInputField setAutocorrectionType:UITextAutocorrectionTypeNo];
[keyInputField setAutocapitalizationType:UITextAutocapitalizationTypeNone];
[keyInputField setSpellCheckingType:UITextSpellCheckingTypeNo];
[self addSubview:keyInputField];
#if TARGET_OS_TV