[BUGFIX] Access correct event variable in ContextMenu.ts