Commit 4b3f8cea authored by Robbie Gibson's avatar Robbie Gibson Committed by Commit Bot

[iOS] Disable omnibox drag on iPhone

This CL disables dragging text out of the omnibox on iPhone because
there is nowhere to drag the text to.

Bug: 834778
Change-Id: Ic5c731b8c5400c40e7357c5ff25e5a8e45f3e544
Reviewed-on: https://chromium-review.googlesource.com/c/1363194Reviewed-by: default avatarStepan Khapugin <stkhapugin@chromium.org>
Commit-Queue: Robbie Gibson <rkgibson@google.com>
Cr-Commit-Position: refs/heads/master@{#614314}
parent 0d63eb57
...@@ -144,6 +144,11 @@ NSString* const kOmniboxFadeAnimationKey = @"OmniboxFadeAnimation"; ...@@ -144,6 +144,11 @@ NSString* const kOmniboxFadeAnimationKey = @"OmniboxFadeAnimation";
[self setSmartQuotesType:UITextSmartQuotesTypeNo]; [self setSmartQuotesType:UITextSmartQuotesTypeNo];
// Disable drag on iPhone because there's nowhere to drag to
if (!IsIPadIdiom()) {
self.textDragInteraction.enabled = NO;
}
// Sanity check: // Sanity check:
DCHECK([self conformsToProtocol:@protocol(UITextInput)]); DCHECK([self conformsToProtocol:@protocol(UITextInput)]);
......
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