Jump to content

Pressing TAB


Lena

Recommended Posts

Hi.

On Form:

UniEdit1 TabOrder=1

UniEdit2 TabOrder=2 //OK focus

UniEdit3 TabOrder=3 //OK focus

UniBitBtn TabOrder=4 //I can not set the focus by pressing TAB

 

I show this Form ShowModal()

In event UniFormShow code UniEdit1->SetFocus();

Then I press key TAB 3 times.

Button does not want to receive focus. How correctly?

Thanks.

 

 

Link to comment
Share on other sites

Hi Lena, 

 

I had the same problem.
 
Two solutions for your case:
 
1) add to UniEdit3 ClientEvents.ExtEvents.specialkey:
 
 
       if (! (e.shiftKey) && (e.getKey () == 9)) {
 
       e.stopEvent ();
       MainForm.UniBitBtn1.focus (); }
 
post-1298-0-36321700-1430224033_thumb.png
 
2) Create a new component Tuniedit
 
     with a new property onBlurControl.
 
     SEE EXAMPLE. 
 
 
 
Regards 
 
 

 

Link to comment
Share on other sites

  • 7 months later...

Hi 

it is not work for me.

I have use Tab-able Jquery  now.

https://github.com/marklagendijk/jQuery.tabbable

 

which does just this. It uses the ':tabbable' selector of jQuery UI to find the next 'tabbable' element and selects it.

Example usage:

// Simulate tab key when element is clicked
$('.myElement').bind('click', function(event){
$.tabNext();
return false;
});

 

Regards 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...