CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Is button selected

by jorgo » 23 Jun 2017 12:24

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
jorgo
 
Posts: 108
Joined: 13 Jul 2016 15:57

by Alexander Bulei » 23 Jun 2017 15:14

Hi,
Can you explain better what are you looking for?

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by jorgo » 23 Jun 2017 16:18

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!
jorgo
 
Posts: 108
Joined: 13 Jul 2016 15:57

by Alexander Bulei » 23 Jun 2017 16:21

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.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to JQButton & JQButtonSet

Who is online

Users browsing this forum: No registered users and 3 guests

Contact Us.