sirgwain / craig-stars

Web based Stars! clone
https://craig-stars.net
MIT License
8 stars 3 forks source link

Feature: Enable shift/control key for number spinners in research dialog… #154

Closed qop08 closed 3 weeks ago

qop08 commented 3 weeks ago

… and race creation dialog to advance by 10/100 when shift/control key pressed

This commit adds a feature that holding the shift key will change the step to 10 for clicking the number slider in the research budget percentage on the research dialog and the econ values on the race dialog.

Similarly holding control will change the step to 100.

I do not know svelte so this may not be the best way to do it. I tried to import and call quantityModifier, but I could not get it working. So I copied the code directly into the increase and decrease functions.