Make autocorrect=off and spellcheck=false disable Touch Bar typing suggestions.
Bug: 1024914 Change-Id: I3ff68438b028fe38ad7270d7f90772b595f4f46e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1917603 Reviewed-by: Avi Drissman <avi@chromium.org> Commit-Queue: Sidney San Martín <sdy@chromium.org> Cr-Commit-Position: refs/heads/master@{#715401}
This commit is contained in:

committed by
Commit Bot

parent
35d6ef251a
commit
bf1f589292
@ -2203,7 +2203,9 @@ extern NSString* NSTextInputReplacementRangeAttributeName;
|
||||
}
|
||||
|
||||
- (NSTouchBar*)makeTouchBar {
|
||||
if (textInputType_ != ui::TEXT_INPUT_TYPE_NONE) {
|
||||
if (textInputType_ != ui::TEXT_INPUT_TYPE_NONE &&
|
||||
!(textInputFlags_ & blink::kWebTextInputFlagAutocorrectOff) &&
|
||||
!(textInputFlags_ & blink::kWebTextInputFlagSpellcheckOff)) {
|
||||
candidateListTouchBarItem_.reset([[NSCandidateListTouchBarItem alloc]
|
||||
initWithIdentifier:NSTouchBarItemIdentifierCandidateList]);
|
||||
auto* candidateListItem = candidateListTouchBarItem_.get();
|
||||
|
Reference in New Issue
Block a user