summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ios.m2
-rw-r--r--src/ui/inputwidget.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ios.m b/src/ios.m
index be1e644f..59d02fc4 100644
--- a/src/ios.m
+++ b/src/ios.m
@@ -663,7 +663,7 @@ void init_SystemTextInput(iSystemTextInput *d, int flags) {
663 [field setAutocapitalizationType:UITextAutocapitalizationTypeNone]; 663 [field setAutocapitalizationType:UITextAutocapitalizationTypeNone];
664 [field setSpellCheckingType:UITextSpellCheckingTypeNo]; 664 [field setSpellCheckingType:UITextSpellCheckingTypeNo];
665 } 665 }
666 if (flags & alignRight_WidgetFlag) { 666 if (flags & alignRight_SystemTextInputFlag) {
667 [field setTextAlignment:NSTextAlignmentRight]; 667 [field setTextAlignment:NSTextAlignmentRight];
668 } 668 }
669 [field setDelegate:appState_]; 669 [field setDelegate:appState_];
diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c
index e72ed361..1c6b8d9e 100644
--- a/src/ui/inputwidget.c
+++ b/src/ui/inputwidget.c
@@ -1051,8 +1051,8 @@ void begin_InputWidget(iInputWidget *d) {
1051 mergeLines_(&d->lines, &d->oldText); 1051 mergeLines_(&d->lines, &d->oldText);
1052#if defined (LAGRANGE_ENABLE_SYSTEM_INPUT) 1052#if defined (LAGRANGE_ENABLE_SYSTEM_INPUT)
1053 d->sysCtrl = new_SystemTextInput((d->inFlags & isUrl_InputWidgetFlag ? disableAutocorrect_SystemTextInputFlag : 0) | 1053 d->sysCtrl = new_SystemTextInput((d->inFlags & isUrl_InputWidgetFlag ? disableAutocorrect_SystemTextInputFlag : 0) |
1054 (!cmp_String(id_Widget(w), "url") ? returnGo_SystemTextInputFlags : 0) ); 1054 (!cmp_String(id_Widget(w), "url") ? returnGo_SystemTextInputFlags : 0) |
1055// (flags_Widget(w) & alignRight_WidgetFlag ? alignRight_SystemTextInputFlag : 0)); 1055 (flags_Widget(w) & alignRight_WidgetFlag ? alignRight_SystemTextInputFlag : 0));
1056 setFont_SystemTextInput(d->sysCtrl, d->font); 1056 setFont_SystemTextInput(d->sysCtrl, d->font);
1057 setRect_SystemTextInput(d->sysCtrl, contentBounds_InputWidget_(d)); 1057 setRect_SystemTextInput(d->sysCtrl, contentBounds_InputWidget_(d));
1058 setText_SystemTextInput(d->sysCtrl, &d->oldText); 1058 setText_SystemTextInput(d->sysCtrl, &d->oldText);