Commit c9bd741c authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by Commit Bot

Switch Voice Interaction shortcut to VKEY_ASSISTANT

Now that we have dedicated key for the assistant, let's start using it,
in addition to Meta-A.

BUG=b:36735408

Change-Id: Ide16328acd1725b36e82016eba14a320c83acd3a
Reviewed-on: https://chromium-review.googlesource.com/550414
Commit-Queue: Dmitry Torokhov <dtor@chromium.org>
Reviewed-by: default avatarDan Erat <derat@chromium.org>
Cr-Commit-Position: refs/heads/master@{#485149}
parent a5beda16
...@@ -161,6 +161,7 @@ const AcceleratorData kAcceleratorData[] = { ...@@ -161,6 +161,7 @@ const AcceleratorData kAcceleratorData[] = {
// Voice Interaction shortcuts. // Voice Interaction shortcuts.
{true, ui::VKEY_A, ui::EF_COMMAND_DOWN, START_VOICE_INTERACTION}, {true, ui::VKEY_A, ui::EF_COMMAND_DOWN, START_VOICE_INTERACTION},
{true, ui::VKEY_ASSISTANT, ui::EF_NONE, START_VOICE_INTERACTION},
// Temporary shortcut added for UX/PM exploration. // Temporary shortcut added for UX/PM exploration.
// TODO(updowndota): Remove the temporary shortcut. // TODO(updowndota): Remove the temporary shortcut.
{true, ui::VKEY_SPACE, ui::EF_COMMAND_DOWN, START_VOICE_INTERACTION}, {true, ui::VKEY_SPACE, ui::EF_COMMAND_DOWN, START_VOICE_INTERACTION},
......
...@@ -15,12 +15,12 @@ namespace ash { ...@@ -15,12 +15,12 @@ namespace ash {
namespace { namespace {
// The number of non-Search-based accelerators as of 2017-06-26. // The number of non-Search-based accelerators as of 2017-07-08.
constexpr int kNonSearchAcceleratorsNum = 92; constexpr int kNonSearchAcceleratorsNum = 93;
// The hash of non-Search-based accelerators as of 2017-06-26. // The hash of non-Search-based accelerators as of 2017-07-08.
// See HashAcceleratorData(). // See HashAcceleratorData().
constexpr char kNonSearchAcceleratorsHash[] = constexpr char kNonSearchAcceleratorsHash[] =
"c45246c981cba1fe2c6d0d3c494e1117"; "b585642b182679454e0e924dffc92463";
struct Cmp { struct Cmp {
bool operator()(const AcceleratorData& lhs, const AcceleratorData& rhs) { bool operator()(const AcceleratorData& lhs, const AcceleratorData& rhs) {
......
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