Rename KeyMapInfo → KeymapInfo
This commit is contained in:
parent
6084490a6e
commit
66250a06eb
|
@ -26,7 +26,7 @@ bool KeymapManager::is_mapped(Key key, KeymapMode mode) const
|
||||||
(m_parent and m_parent->is_mapped(key, mode));
|
(m_parent and m_parent->is_mapped(key, mode));
|
||||||
}
|
}
|
||||||
|
|
||||||
const KeymapManager::KeyMapInfo&
|
const KeymapManager::KeymapInfo&
|
||||||
KeymapManager::get_mapping(Key key, KeymapMode mode) const
|
KeymapManager::get_mapping(Key key, KeymapMode mode) const
|
||||||
{
|
{
|
||||||
auto it = m_mapping.find(KeyAndMode{key, mode});
|
auto it = m_mapping.find(KeyAndMode{key, mode});
|
||||||
|
|
|
@ -36,12 +36,12 @@ public:
|
||||||
bool is_mapped(Key key, KeymapMode mode) const;
|
bool is_mapped(Key key, KeymapMode mode) const;
|
||||||
KeyList get_mapped_keys(KeymapMode mode) const;
|
KeyList get_mapped_keys(KeymapMode mode) const;
|
||||||
|
|
||||||
struct KeyMapInfo
|
struct KeymapInfo
|
||||||
{
|
{
|
||||||
KeyList keys;
|
KeyList keys;
|
||||||
String docstring;
|
String docstring;
|
||||||
};
|
};
|
||||||
const KeyMapInfo& get_mapping(Key key, KeymapMode mode) const;
|
const KeymapInfo& get_mapping(Key key, KeymapMode mode) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
KeymapManager()
|
KeymapManager()
|
||||||
|
@ -51,7 +51,7 @@ private:
|
||||||
|
|
||||||
KeymapManager* m_parent;
|
KeymapManager* m_parent;
|
||||||
using KeyAndMode = std::pair<Key, KeymapMode>;
|
using KeyAndMode = std::pair<Key, KeymapMode>;
|
||||||
HashMap<KeyAndMode, KeyMapInfo, MemoryDomain::Mapping> m_mapping;
|
HashMap<KeyAndMode, KeymapInfo, MemoryDomain::Mapping> m_mapping;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user