Skip to content

Commit

Permalink
First working, basic. no args or path, or setting change detections.
Browse files Browse the repository at this point in the history
  • Loading branch information
jefflord committed Dec 2, 2023
1 parent 38841e2 commit 2110310
Show file tree
Hide file tree
Showing 3 changed files with 621 additions and 8 deletions.
11 changes: 8 additions & 3 deletions src/modules/keyboardmanager/common/MappingConfiguration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,14 @@ bool MappingConfiguration::AddOSLevelShortcut(const Shortcut& originalSC, const
return false;
}

osLevelShortcutReMap[originalSC] = RemapShortcut(newSC);
osLevelShortcutReMapSortedKeys.push_back(originalSC);
Helpers::SortShortcutVectorBasedOnSize(osLevelShortcutReMapSortedKeys);
auto shortCut = std::get<Shortcut>(newSC);

if (!shortCut.isRunProgram)
{
osLevelShortcutReMap[originalSC] = RemapShortcut(newSC);
osLevelShortcutReMapSortedKeys.push_back(originalSC);
Helpers::SortShortcutVectorBasedOnSize(osLevelShortcutReMapSortedKeys);
}

return true;
}
Expand Down
Loading

0 comments on commit 2110310

Please sign in to comment.