Skip to content

Commit e0b1e61

Browse files
authored
Fix for issue #506 (#525)
Fixes issue #506 by being a little more conservative in the zIndex check * Update changelog
1 parent 195b0c7 commit e0b1e61

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* ContextMenu appears with wrong position ([Issue #502](https://github.com/swisnl/jQuery-contextMenu/issues/502) thanks @apptaro
88
* Check if given selected value is a 0, if it is a zero so return it as is. Thanks @Falseee
99
* Events are never trigger when opening a contextMenu right after the other ([Issue #454](https://github.com/swisnl/jQuery-contextMenu/issues/454) thanks @kagant15
10+
* Accesskey jQuery Modal Dialog not working ([Issue #506](https://github.com/swisnl/jQuery-contextMenu/issues/506) thanks @CiTRO33
1011

1112
### 2.4.4
1213

src/jquery.contextMenu.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@
549549
// If targetZIndex is heigher then opt.zIndex dont progress any futher.
550550
// This is used to make sure that if you are using a dialog with a input / textarea / contenteditable div
551551
// and its above the contextmenu it wont steal keys events
552-
if (targetZIndex > opt.zIndex) {
552+
if (opt.$menu && parseInt(targetZIndex,10) > parseInt(opt.$menu.css("zIndex"),10)) {
553553
return;
554554
}
555555
switch (e.keyCode) {

0 commit comments

Comments
 (0)