blob: e969f618cc539bab664cb6bb391f8a8b513f6c36 [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/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( Move this to KeyboardControllerImpl once that class
// handles both VKs.
bool CloseKeyboardIfActive();
} // namespace keyboard_util
} // namespace ash