From f4801b8134c88718f49292470fddf01cd630a57f Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 5 Dec 2019 03:36:25 -0600 Subject: Actually refactor valid_keymaps into a reusable component --- util/keymaps.hh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 util/keymaps.hh (limited to 'util/keymaps.hh') diff --git a/util/keymaps.hh b/util/keymaps.hh new file mode 100644 index 0000000..91171dd --- /dev/null +++ b/util/keymaps.hh @@ -0,0 +1,30 @@ +/* + * keymaps.hh - Keymap definitions + * util, the utility library for + * Project Horizon + * + * Copyright (c) 2019 Adélie Linux and contributors. All rights reserved. + * This code is licensed under the AGPL 3.0 license, as noted in the + * LICENSE-code file in the root directory of this repository. + * + * SPDX-License-Identifier: AGPL-3.0-only + */ + +#ifndef HORIZON_KEYMAPS_HH_ +#define HORIZON_KEYMAPS_HH_ + +#include +#include + +const std::set valid_keymaps = { + "us", "ad", "af", "ara", "al", "am", "at", "az", "by", "be", "bd", "in", + "ba", "br", "bg", "ma", "mm", "ca", "cd", "cn", "hr", "cz", "dk", "nl", + "bt", "ee", "ir", "iq", "fo", "fi", "fr", "gh", "gn", "ge", "de", "gr", + "hu", "is", "il", "it", "jp", "kg", "kh", "kz", "la", "latam", "lt", "lv", + "mao", "me", "mk", "mt", "mn", "no", "pl", "pt", "ro", "ru", "rs", "si", + "sk", "es", "se", "ch", "sy", "tj", "lk", "th", "tr", "ua", "gb", "uz", + "vn", "kr", "ie", "pk", "mv", "za", "epo", "np", "ng", "et", "sn", "brai", + "tm", "ml", "tz", "ke", "bw", "ph" +}; + +#endif /* !HORIZON_KEYMAPS_HH_ */ -- cgit v1.2.3-60-g2f50