EasyUI Forum
May 04, 2024, 10:34:56 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: modal window (or dialog) allows focus to objects under the window  (Read 9520 times)
korenanzo
Guest
« 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  Huh)

RIc
« Last Edit: March 07, 2016, 09:01:18 AM by korenanzo » Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 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/
Logged
korenanzo
Guest
« Reply #2 on: March 08, 2016, 08:55:51 AM »

nice job Smiley

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 .. Huh

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
« Last Edit: March 08, 2016, 09:16:44 AM by korenanzo » Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #3 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.
Logged
korenanzo
Guest
« Reply #4 on: March 09, 2016, 01:56:41 AM »

You're right, in chrome it works, and in safari it works after modified the properties !



Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!