mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-18 17:02:06 +03:00
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));
|
||||
}
|
||||
|
||||
const KeymapManager::KeyMapInfo&
|
||||
const KeymapManager::KeymapInfo&
|
||||
KeymapManager::get_mapping(Key key, KeymapMode mode) const
|
||||
{
|
||||
auto it = m_mapping.find(KeyAndMode{key, mode});
|
||||
|
@ -36,12 +36,12 @@ public:
|
||||
bool is_mapped(Key key, KeymapMode mode) const;
|
||||
KeyList get_mapped_keys(KeymapMode mode) const;
|
||||
|
||||
struct KeyMapInfo
|
||||
struct KeymapInfo
|
||||
{
|
||||
KeyList keys;
|
||||
String docstring;
|
||||
};
|
||||
const KeyMapInfo& get_mapping(Key key, KeymapMode mode) const;
|
||||
const KeymapInfo& get_mapping(Key key, KeymapMode mode) const;
|
||||
|
||||
private:
|
||||
KeymapManager()
|
||||
@ -51,7 +51,7 @@ private:
|
||||
|
||||
KeymapManager* m_parent;
|
||||
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