mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
refactor: remove constexpr from KeyboardCodeFromKeyIdentifier
Ref: unknown Added TODO to investigate after
This commit is contained in:
@@ -16,8 +16,8 @@ namespace {
|
||||
|
||||
using CodeAndShiftedChar = std::pair<ui::KeyboardCode, std::optional<char16_t>>;
|
||||
|
||||
constexpr CodeAndShiftedChar KeyboardCodeFromKeyIdentifier(
|
||||
const std::string_view str) {
|
||||
// TODO: Why does making this constexpr fail
|
||||
CodeAndShiftedChar KeyboardCodeFromKeyIdentifier(const std::string_view str) {
|
||||
#if BUILDFLAG(IS_MAC)
|
||||
constexpr auto CommandOrControl = ui::VKEY_COMMAND;
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user