sojamo / controlp5

A gui library for processing.org
GNU Lesser General Public License v2.1
490 stars 142 forks source link

saveProperties() key commands also enable dragging of elements #111

Open timrolls opened 6 years ago

timrolls commented 6 years ago

Saving and loading JSON for controller properties is broken when using saveProperties()/loadProperties() - red console error "ignoring".

Using the key commands ALT-SHIFT-S / ALT-SHIFT-L does work, however ALT also enables dragging of elements. It's required to use SHIFT-H to turn it off again. If you're unaware this is happening, attempts to interact with controllers will actually move them.

I've tried using setMoveable(), and also overriding the ALT key. Is there a way to completely disable dragging (without locking interaction on objects), or to disable/override the ALT key command in the library? I'd rather not start a fork.