Remove event listeners from (shadow) root instead of window,
Remove event listeners from (shadow) root instead of window,

make context menus work in Shadow DOM.

Fixes https://github.com/josdejong/jsoneditor/issues/447

josdejong/jsoneditor,josdejong/jsoneditor