Multiple 'Change State' triggers on 1 item
I was helping someone else in another thread who wanted to detect CTRL + Click to simulate selecting multiple items in a list (like selecting multiple files from a list in windows).
This worked and changes the state of the button only when CTRL + Click are used. The trigger on the menu item was:
Change the state of Rectangle 1 to 'ctrl-pressed' when user clicks if 'keypress' is equal to True
But wanting to take this a little further I want to be able to CTRL + Click the same item and return it back to normal.
To do this I thought I could set 2 triggers on the 1 item. The first trigger is:
Change the state of Rectangle 1 to 'ctrl-pressed' when user clicks - if 'keypress' is equal to True AND Rectangle 1's STATE is equal to 'Normal'
This trigger works fine when it is the only trigger on the item. But if I add the second trigger:
Change the state of Rectangle 1 to 'Normal' when user clicks - if 'keypress' is equal to True AND Rectangle 1's STATE is equal to 'ctrl-pressed'.
When I add this trigger than nothing works.
You can have a look here.
Menu item 1 has both triggers applied.
Menu items 2, 3, 4 only have 1 trigger applied.