Commit 19dd1b48 authored by Yuichiro Hanada's avatar Yuichiro Hanada Committed by Commit Bot

Don't exit touch mode when launching an ARC++ app with a key event.

We changed the flag according to whether an app is launched by a key
event or not, however it leads to undesirable results because of the
unpredictability of which element will be focused on startup.
This CL stops sending an intent to exit touch mode when launching an
ARC++ app by a key event.

Bug: b:146477273
Test: Launch app by enter key and checks the mode is not changed.
Change-Id: Id57099803572cb3e800553c4cbb1022cc215a1f9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1977876Reviewed-by: default avatarStefan Kuhne <skuhne@chromium.org>
Reviewed-by: default avatarYury Khmel <khmel@chromium.org>
Commit-Queue: Yuichiro Hanada <yhanada@chromium.org>
Cr-Commit-Position: refs/heads/master@{#729565}
parent 49439e13
......@@ -156,7 +156,7 @@ bool Launch(content::BrowserContext* context,
arc::mojom::IntentHelperInstance* intent_helper_instance =
GET_INTENT_HELPER_INSTANCE(SendBroadcast);
if (intent_helper_instance) {
if (intent_helper_instance && IsMouseOrTouchEventFromFlags(event_flags)) {
base::DictionaryValue extras;
extras.SetBoolean("inTouchMode", IsMouseOrTouchEventFromFlags(event_flags));
std::string extras_string;
......
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