Skip to content

Commit

Permalink
Refactoring to extract the actions table definition from ActionsShort…
Browse files Browse the repository at this point in the history
…cutsManager
  • Loading branch information
mikekazakov committed Jan 5, 2025
1 parent 0ad512b commit 8f03a5e
Show file tree
Hide file tree
Showing 4 changed files with 214 additions and 236 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ class ActionsShortcutsManager : public nc::utility::ActionsShortcutsManager, pri
// Duplicates are removed as well.
static Shortcuts SanitizedShortcuts(const Shortcuts &_shortcuts) noexcept;

// ...
ankerl::unordered_dense::map<int, std::string> m_TagToAction;

// ...
ankerl::unordered_dense::map<std::string, int, UnorderedStringHashEqual, UnorderedStringHashEqual> m_ActionToTag;

// Maps an action tag to the default ordered list of its shortcuts.
ankerl::unordered_dense::map<int, Shortcuts> m_ShortcutsDefaults;

Expand Down
Loading

0 comments on commit 8f03a5e

Please sign in to comment.