Removed superfluous comments.
Simplified focused widget check.
Use widget#contextMenu event instead of editor.ctxMenu.addListener.