blob: b46b29e4c766e6b64c1ec1afb16b145e2a29c1f5 [file] [log] [blame]
// Copyright (c) 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/keyboard/keyboard_util.h"
namespace ash {
namespace keyboard_util {
bool IsArrowKeyCode(const ui::KeyboardCode key_code) {
return key_code == ui::VKEY_DOWN || key_code == ui::VKEY_RIGHT ||
key_code == ui::VKEY_LEFT || key_code == ui::VKEY_UP;
}
} // namespace keyboard_util
} // namespace ash