Display multi-mappings correctly in the mapping list

This commit is contained in:
Henrik Rydgård committed 2023-04-01 15:00:22 +02:00
1 parent 49a2c93b66
commit 8c9fee064e
3 files changed
+18 -8

No files matched your search

+2
View File
@@ -113,6 +113,8 @@ namespace KeyMap {
static MultiInputMapping FromConfigString(const std::string &str);
std::string ToConfigString() const;
std::string ToVisualString() const;
bool operator <(const MultiInputMapping &other) {
for (size_t i = 0; i < mappings.capacity(); i++) {
// If one ran out of entries, the other wins.