Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mauritsd
Copy link

@mauritsd mauritsd commented Jan 3, 2017

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.

Maurits Dijkstra added 3 commits January 1, 2017 18:43
…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" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor whitespace issue there.

@mauritsd
Copy link
Author

mauritsd commented Jan 4, 2017

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.

Copy link
Author

@mauritsd mauritsd left a 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.

@oakkitten
Copy link
Collaborator

is this still relevant?

@polyzen
Copy link

polyzen commented Sep 20, 2022

I would like to be able to disable auto-capitalization.

Edit: This might just be tied to my keyboard app's settings, though?

@oakkitten
Copy link
Collaborator

I don't think I have auto-capitalization and I'm just using Gboard, it has a setting for that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants