Commit 36dd9287 authored by Yuichiro Hanada's avatar Yuichiro Hanada Committed by Commit Bot

Check --enable-virtual-keyboard flag when sending keyboard type to a client.

--enable-virtual-keyboard flag is used to force-enable VK for testing.
This CL makes exo::Keyboard send the flag information to a wayland client.

Bug: 852351
Test: manual - enable the flag and check VK is enabled on ARC++ apps
Change-Id: I0ca7c895aa960ddbfa2118bcf2c14d506a184f19
Reviewed-on: https://chromium-review.googlesource.com/c/1454168Reviewed-by: default avatarMitsuru Oshima <oshima@chromium.org>
Commit-Queue: Yuichiro Hanada <yhanada@chromium.org>
Cr-Commit-Position: refs/heads/master@{#629420}
parent d4ea7b10
...@@ -116,7 +116,10 @@ bool ConsumedByIme(Surface* focus, const ui::KeyEvent* event) { ...@@ -116,7 +116,10 @@ bool ConsumedByIme(Surface* focus, const ui::KeyEvent* event) {
bool IsVirtualKeyboardEnabled() { bool IsVirtualKeyboardEnabled() {
return keyboard::GetAccessibilityKeyboardEnabled() || return keyboard::GetAccessibilityKeyboardEnabled() ||
keyboard::GetTouchKeyboardEnabled(); keyboard::GetTouchKeyboardEnabled() ||
(keyboard::KeyboardController::HasInstance() &&
keyboard::KeyboardController::Get()->IsEnableFlagSet(
keyboard::mojom::KeyboardEnableFlag::kCommandLineEnabled));
} }
bool IsReservedAccelerator(const ui::KeyEvent* event) { bool IsReservedAccelerator(const ui::KeyEvent* event) {
......
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