2011-02-19 2 views

답변

2

이것은 대략적인 아이디어이지만 정확한 방법을 알려주지 않고 아이디어를 얻고 싶습니다. 나는 의사와 의사 JQuery와 코드의 조합을 사용합니다 :

function showMymodaldExample() { 
    //Show modal dialog (mymodal) code goes here 
    // 
    //Then we bind an event 
    $(document).bind('mymodal.keydown', function(e) { 
     if (currently focussed element is not a child of mymodal) { 
      set the focus previous element 
     } 
    }); 
} 

을 그리고 당신은/대화

를 숨기 파괴 할 때 mymodal.keydown 바인딩을 해제하는 것을 잊지
관련 문제