javascript - -moz-user-focus equivalent for Chrome -
javascript - -moz-user-focus equivalent for Chrome -
i have custom model dialog command used popups in our web pages. when dialog initialized, rest of page grayed out using jquery expose . adding next styles mask div prevent selection on grayed out area.
-moz-user-focus: ignore; -moz-user-select: none; -webkit-user-select: none; -khtml-user-select: none; -o-user-select: none; user-select: none;
on dialog, pressing ‘esc’key closes dialog , pressing ‘enter’ key works clicking on ok or yes button. if user clicks anywhere on grayed out area; above css prevents focus going onto command in grayed out area in firefox. ie,i programatically handling follows
$('#exposemask').attr("contenteditable", "false"); $('#exposemask').attr("unselectable", "on");
but chrome, above css -webkit-user-select prevents selection not help prevent focus. i tried google find solution count not find helpful links. there style element equivalent -moz-user-focus chrome?
thanks in advance, m
pointer-events: none;
that should it.
javascript css
Comments
Post a Comment