Shift+Click troubles


#1

Hi, I’m trying to establish conditions (OnClick and OnClick condition: if key pressed equals value “shift”) for differentiating behavior while selecting multiple boxes (objects) with regular click and shift-click in Axure 8 on a PC.

Once I use shift-click while running the prototype, I can’t seem to get it to behave as a regular click anymore (stuck in shift-click?). Switching the condition sequence doesn’t seem to help.

Please advise.
shift-click-issue.rp (45.2 KB)


#2

Hi!

Only messages that deal specifically with typing (OnKeyDown, OnKeyUp, OnTextChange) can test for the “key pressed” condition.

What you can do is use OnPageKeyDown and OnPageKeyUp to set a global variable to true on down of the Shift key and false on up, like so:


Then in your OnClick code, test for the value of this variable instead of testing for key pressed.

Note that if the thing you are clicking on for whatever reason handles the OnKeyDown or OnKeyUp message (like it might for a text field), you will need to fire the page versions of this message.


Move a widget by holding down mouse key and space key
#3

Thanks again, works like a charm! :slight_smile:


#4

Also thank you for the workaround.

But for me it seems like a bug still. Hope they will fix it :slight_smile:


closed #5

unlisted #6