DinoDevs / GladiatusCrazyAddon

This was "A browser addon for the Gladiatus browser game."
https://gladiatus.dinodevs.com
GNU General Public License v3.0
41 stars 29 forks source link

Add tooltip or notification about training increment with ctrl #452

Open GreatApo opened 1 year ago

GreatApo commented 1 year ago

Somehow inform the users that by pressing CTRL the training increment buttons change by 10 instead of 1. (#450)

jrel commented 1 year ago

CTRL doesn't work on Mac. We can use e.metaKey to check if the command key is pressed, but meta is the window key in Windows. We can add a filter to check if the user uses a Mac.

var isMac = navigator.platform.toUpperCase().indexOf('MAC')>=0;

But I think it is easier to switch to the shift key and use e.shiftKey.