EasyUI Forum

General Category => Bug Report => Topic started by: korenanzo on March 07, 2016, 07:38:34 AM



Title: modal window (or dialog) allows focus to objects under the window
Post by: korenanzo on March 07, 2016, 07:38:34 AM
Hi,
please try it:

http://jsfiddle.net/korenanzo/kggqg4kd/1/

open the modal dialog ; the first textfield gets the focus (ok) ;

press shift+tab : the textbook t1 will get the focus and control (that's NOT OK  ???)

RIc


Title: Re: modal window (or dialog) allows focus to objects under the window
Post by: jarry on March 08, 2016, 08:15:23 AM
Please call the extended 'watchTab' method to prevent from focusing input outside of the dialog.

http://jsfiddle.net/kggqg4kd/2/


Title: Re: modal window (or dialog) allows focus to objects under the window
Post by: korenanzo on March 08, 2016, 08:55:51 AM
nice job :)

anyway I'd also to put the buttons in the loop:


tried with
                    
Code:
  var last = $(this).find(':enabled:visible:last');
 

but doesn't work .. ???

http://jsfiddle.net/korenanzo/w5fndc0c/1/

furthermore, could be possible to call the new method "without calling it", so that it became the default behaviour?

Thanks,
RIc


Title: Re: modal window (or dialog) allows focus to objects under the window
Post by: jarry on March 08, 2016, 05:25:56 PM
Some browsers do not allow you to focus on a button by pressing Tab key. You will have to change its preferences before getting this feature.


Title: Re: modal window (or dialog) allows focus to objects under the window
Post by: korenanzo on March 09, 2016, 01:56:41 AM
You're right, in chrome it works, and in safari it works after modified the properties !