Right...
a. The
documentation for the
modal option is a**e-about-face. The default is actually
false, and to disable
click-on-overlay-to-close you have to set modal to
true!
b. You are calling open() with an object. You have defined that object as having properties player, displayNav, content, height, width and title. All bar modal and displayNav are valid properties for an object passed into open(),
but modal and displayNav are properties of the
options object, not the cache object which is what is required by open()!
Define your open() object as...
{player:___, content:___, width:___, height:___, options:{enableKeys:false, displayNav:false}}
...and you
should find that keys and navigation are disabled.
This will also work for setting the modal option, but only for media not being displayed as part of a gallery. Once Shadowbox is activated (opened), the functionality governed by the setting of the modal option cannot be changed until Shadowbox is closed and re-opened.
I agree that the use of the word 'options' throughout the documentation is ambiguous, because it can mean slightly different things depending on the context. However, the
advanced usage section does give an indication of the properties required/expected of an object passed into open(), even though it misses out the
options property (which is an object of
options!?).