Hotgroup logic updated

This commit is contained in:
PeekabooSteam
2023-10-16 19:45:51 +01:00
parent 24cd2729db
commit c0aee94da5
4 changed files with 45 additions and 6 deletions

View File

@@ -42,8 +42,8 @@ export class HotgroupPanel extends Panel {
this.getElement().appendChild(el);
el.addEventListener("click", () => {
getApp().getUnitsManager().selectUnitsByHotgroup(hotgroup);
el.addEventListener("click", ( ev:MouseEvent ) => {
getApp().getUnitsManager().selectUnitsByHotgroup(hotgroup, (!ev.ctrlKey));
});
el.addEventListener("mouseover", () => {