Perfectly replicating the base game repair behavior is not possible due to the inability to detect if a button is being held down.
Instead this mod tries to make repairing unobtrusive in the most common use case: grabbing repair packs in your hand and holding down the button while hovering the cursor over damaged entities. Expect the behavior to not match the base game outside that narrow use case.