electron/shell/common/keyboard_util.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 строки
697 B
C
Исходник Обычный вид История

2015-09-18 08:33:06 +03:00
// Copyright (c) 2015 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef ELECTRON_SHELL_COMMON_KEYBOARD_UTIL_H_
#define ELECTRON_SHELL_COMMON_KEYBOARD_UTIL_H_
2015-09-18 08:33:06 +03:00
#include <optional>
#include <string_view>
2015-09-18 08:33:06 +03:00
#include "ui/events/keycodes/keyboard_codes.h"
namespace electron {
// Return key code of the |str|, if the original key is a shifted character,
// for example + and /, set it in |shifted_char|.
2015-09-18 08:33:06 +03:00
// pressed.
ui::KeyboardCode KeyboardCodeFromStr(std::string_view str,
std::optional<char16_t>* shifted_char);
2015-09-18 08:33:06 +03:00
} // namespace electron
#endif // ELECTRON_SHELL_COMMON_KEYBOARD_UTIL_H_