blob: ddc06b2435c59da9dd6799d014955f13a47ddfd1 [file] [log] [blame]
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_KEYBOARD_KEYBOARD_UTIL_H_
#define ASH_KEYBOARD_KEYBOARD_UTIL_H_
#include "ash/ash_export.h"
#include "ui/events/keycodes/keyboard_codes.h"
namespace ash {
namespace keyboard_util {
// Returns whether the given key code corresponds to one of the 4 arrow keys.
ASH_EXPORT bool IsArrowKeyCode(const ui::KeyboardCode key_code);
// Closes the active (Chrome OS or Android VK). Returns false if no keyboard was
// active.
// TODO(crbug.com/1060272): Move this to KeyboardControllerImpl once that class
// handles both VKs.
bool CloseKeyboardIfActive();
} // namespace keyboard_util
} // namespace ash
#endif // ASH_KEYBOARD_KEYBOARD_UTIL_H_