-
Notifications
You must be signed in to change notification settings - Fork 739
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Accesskey jQuery Modal Dialog not working #506
Comments
When i open the demo i do get an alert, am i missing something? |
Hey, the alert isnt comming if i use the accesskey "o" to open the "overview"-menu item. If you change |
Ah i can reproduce the problem now. Thanks |
Hey @bbrala |
Hmm, i've looked at the problem, and i think the fact you use
I don't think i can really fix that. |
i think the problem come with the pull #335 I debugged into the fiddle https://jsfiddle.net/t31wtnny/1/ So the zIndex of the Dialog is behind (101) the contextMenu (102). If i understand the zIndex option http://swisnl.github.io/jQuery-contextMenu/docs.html#zindex correctly Maybe this change on line 552 could fix the problem: But i dont know if this break the the pull #335 I also tried this method: https://api.jqueryui.com/dialog/#method-_allowInteraction Maybe you can use this information to find a solution. |
Hmm, thanks for looking a little deeper for a possible explaination. It sounds quite reasonable... I'll have to test a bit to see if it is indeed an error in logic regarding the zIndex. |
Hey @bbrala, |
Hello,
i upgraded to the latest Version of contextmenu.
With the new Version the accesskeys didn't work anymore in modal jQuery Dialogs
I created a demo to show the problem:
https://jsfiddle.net/t31wtnny/
The contextmenu can be triggered with right click on"test".
i figured it out that Linie 552 cause the problem:
getZIndexOfTriggerTarget(e.target);
// If targetZIndex is heigher then opt.zIndex dont progress any futher.
// This is used to make sure that if you are using a dialog with a input / textarea / contenteditable div
// and its above the contextmenu it wont steal keys events
if (targetZIndex > opt.zIndex) { return; }
The text was updated successfully, but these errors were encountered: