Add option to have emoji button directly on the keyboard (like hangouts)
Created by: pR0Ps
After some experimentation it seems like with most keyboards the emoji button can be directly added to the keyboard (instead of being hidden behind the enter key) by specifying that the type of the input box is a short message.
Idea for implementation (not tested extensively) - in ComposeText.java
on this line:
inputType = !showEmojiKey
? inputType & ~InputType.TYPE_TEXT_VARIATION_SHORT_MESSAGE
: inputType | InputType.TYPE_TEXT_VARIATION_SHORT_MESSAGE;
I propose the following options structure:
Conditions for enabling options:
-
Disable Emoji drawer option:
- Always enabled
-
Show emoji key instead of enter option:
- Enabled only when Disable Emoji drawer is on
- When the emoji drawer is enabled, there's no need to have the emoji button on the keyboard as well.
-
Enter key sends option:
- Enabled when Disable Emoji drawer is on OR Show emoji key instead of enter is off
- When the emoji drawer is disabled, the user can choose if they want to have the enter key send or insert a newline (emojis will be on long tap).
- When the emoji key is shown instead of the enter key, there is no enter/send button so this setting would do nothing.