Page 1 of 1

Is button selected

PostPosted: 23 Jun 2017 12:24
by jorgo
Hi,

I found TIWCGJQButton.Focused.
Is there somewhere a "Selected" property?
I can't find it.

(I don't want to "Select" the button)

Kind regards

Re: Is button selected

PostPosted: 23 Jun 2017 15:14
by Alexander Bulei
Hi,
Can you explain better what are you looking for?

Best Regards.

Re: Is button selected

PostPosted: 23 Jun 2017 16:18
by jorgo
Sorry,

I use your discribed trick to get all pressed key events from the document.
There I get my first <Enter> event. -> I start an action.

Now if a button is selected the keypress <Enter> itself fires a second event.
It starts the same action.

So I have the problem, when the button is selected and I press <Enter>
2 actions are started.

I want to prevent this!

Re: Is button selected

PostPosted: 23 Jun 2017 16:21
by Alexander Bulei
Hi jorgo,

You can prevent the second action, with this line:

Code: Select all
event.stopPropagation();


On document key press event...and don't forget to pass the event into function:

Code: Select all
function(event){...


Best Regards.