Display file name in context menu
Use mousedown event

The contextmenu is only trigged when the context menu is shown. That
means that we are always one click behind (our context menu entry is
updated too late) and are likely to open the wrong element.
Only react on right mouse button
Improve context menu event handling