mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 844573 - Detect textarea; r=cpeterson
This commit is contained in:
parent
f6280b4b8d
commit
a17a62df52
@ -572,7 +572,14 @@ class GeckoInputConnection
|
||||
else if (mIMEModeHint.equalsIgnoreCase("digit"))
|
||||
outAttrs.inputType = InputType.TYPE_CLASS_NUMBER;
|
||||
else {
|
||||
outAttrs.inputType |= InputType.TYPE_TEXT_FLAG_AUTO_CORRECT;
|
||||
// TYPE_TEXT_FLAG_IME_MULTI_LINE flag makes the fullscreen IME line wrap
|
||||
outAttrs.inputType |= InputType.TYPE_TEXT_FLAG_AUTO_CORRECT |
|
||||
InputType.TYPE_TEXT_FLAG_IME_MULTI_LINE;
|
||||
if (mIMETypeHint.equalsIgnoreCase("textarea") ||
|
||||
mIMETypeHint.length() == 0) {
|
||||
// empty mIMETypeHint indicates contentEditable/designMode documents
|
||||
outAttrs.inputType |= InputType.TYPE_TEXT_FLAG_MULTI_LINE;
|
||||
}
|
||||
if (mIMEModeHint.equalsIgnoreCase("uppercase"))
|
||||
outAttrs.inputType |= InputType.TYPE_TEXT_FLAG_CAP_CHARACTERS;
|
||||
else if (mIMEModeHint.equalsIgnoreCase("titlecase"))
|
||||
|
Loading…
Reference in New Issue
Block a user