-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow the user to configure the auto-capitalization and auto-correction for chat messages. #329
base: master
Are you sure you want to change the base?
Conversation
…input field configurable.
…uired to show multi line pastes properly. Some keyboards (SwiftKey) refuse to disable auto-capitalization if the multi line flag is also set, but this should be considered a bug in those keyboards.
…not sending the multi line flag to the IME.
<CheckBoxPreference android:key="volumebtn_size" android:title="@string/pref_volumebtn_size" android:summary="@string/pref_volumebtn_size_summary" android:defaultValue="true" /> | ||
<CheckBoxPreference android:key="autocorrect_input" android:title="@string/pref_autocorrect_enable" android:defaultValue="true" /> | ||
<CheckBoxPreference android:key="autocapitalize_input" android:title="@string/pref_autocapitalize_enable" android:defaultValue="true" /> | ||
<CheckBoxPreference android:key="volumebtn_size" android:title="@string/pref_volumebtn_size" android:summary="@string/pref_volumebtn_size_summary" android:defaultValue="true" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor whitespace issue there.
As noted on IRC, the auto-correction toggle seems to be less useful than the auto-capitalization one. I added it because someone requested it, but it might make more sense to leave this as a global setting for the keyboard rather than allowing users to specifically disable it for weechat-android. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've corrected the indentation, but the entire file contains mixed tabs and spaces for indentation. Should probably be corrected separately.
is this still relevant? |
3789f56
to
199d6cc
Compare
I would like to be able to disable auto-capitalization. Edit: This might just be tied to my keyboard app's settings, though? |
I don't think I have auto-capitalization and I'm just using Gboard, it has a setting for that |
Adds two preferences to allow the user to disable auto-correction and auto-capitalization on the chat message input EditText. To work around a SwiftKey bug/feature we set multi line mode (InputType.TYPE_TEXT_FLAG_MULTI_LINE) on the ActionEditText but don't actually send it on to the IME itself.