electron/atom/common/keyboard_util.h

21 строка
525 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 ATOM_COMMON_KEYBOARD_UTIL_H_
#define ATOM_COMMON_KEYBOARD_UTIL_H_
2015-09-18 08:33:06 +03:00
#include <string>
2016-03-06 09:04:05 +03:00
2015-09-18 08:33:06 +03:00
#include "ui/events/keycodes/keyboard_codes.h"
namespace atom {
2016-03-06 09:04:05 +03:00
// Return key code of the |str|, and also determine whether the SHIFT key is
2015-09-18 08:33:06 +03:00
// pressed.
2016-03-06 09:04:05 +03:00
ui::KeyboardCode KeyboardCodeFromStr(const std::string& str, bool* shifted);
2015-09-18 08:33:06 +03:00
} // namespace atom
#endif // ATOM_COMMON_KEYBOARD_UTIL_H_