private void CheckForHotkeyPresses() { if (Event.current.keyCode == KeyCode.None) { return; } if (AllowToolDefOf.ToolContextMenuAction.JustPressed) { DesignatorContextMenuController.ProcessContextActionHotkeyPress(); } if (!settingGlobalHotkeys || Find.CurrentMap == null) { return; } for (int i = 0; i < activeDesignators.Count; i++) { var entry = activeDesignators[i]; if (entry.key == null || !entry.key.JustPressed || !entry.designator.Visible) { continue; } Find.DesignatorManager.Select(entry.designator); break; } }
private void CheckForHotkeyPresses() { if (Find.CurrentMap == null || Event.current.keyCode == KeyCode.None) { return; } if (AllowToolDefOf.ToolContextMenuAction.JustPressed) { DesignatorContextMenuController.ProcessContextActionHotkeyPress(); } if (!AllowToolController.Instance.Handles.GlobalHotkeysSetting) { return; } for (int i = 0; i < activeListeners.Count; i++) { if (activeListeners[i].hotKey.JustPressed && activeListeners[i].designator.Visible) { Find.DesignatorManager.Select(activeListeners[i].designator); break; } } }