Commit bf1f5892 authored by Sidney San Martín's avatar Sidney San Martín Committed by Commit Bot

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/+/1917603Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Commit-Queue: Sidney San Martín <sdy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#715401}
parent 35d6ef25
......@@ -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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment