Edit, made this a TODO, since support for these kinds of buttons has not been added.
Currently menu items defined by uiItemMenuEnumO_ptr don't have right click menus, this is because they reference the operator from a MenuItemLevel struct.
System Information
Operating system: Windows-10-10.0.14393 64 Bits
Graphics card: GeForce GTX 1050 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.86
Blender Version
Broken: version: 2.82 (sub 1), branch: master, commit date: 2019-11-19 17:28, hash: rB9ca2cbdcea6a
Worked: (optional)
Short description of error
After noticing that right click context menu was a bit broken on some menu items, I proceeded to test it on every single drop down menu in Blender and came up with this list below.
All the items here fail to display right click context menu, instead it simply opens the window the same way as a left click
3D Viewport
Object mode
Select
Select All by Type...
Select Grouped
Select Linked
Add
Grease Pencil
Empty
Force Field
Object
Set Origin
Convert to
Edit mode
Mesh
Sort Elements...
Separate
UV Editor
UV
Snap to Pixels
Video Sequencer
Sequencer
View
Waveform Displaying
Select
Grouped
Marker
Duplicate Marker to Scene
Add
Fade
Dope Sheet
Dope Sheet (and all other editor subtypes)
Marker
Duplicate Marker to Scene
Channel
Toggle Channel Setting
Enable Channel Setting
Disable Channel Setting
Extrapolation Mode
Move
Key
Snap
Mirror
Keyframe Type
Handle Type
Interpolation Mode
Timeline
Marker
Duplicate Marker to Scene
Graph Editor/Drivers
Marker
Duplicate Marker to Scene
Channel
Toggle Channel Setting
Enable Channel Setting
Disable Channel Setting
Extrapolation Mode
Move
Key
Snap
Mirror
Insert Keyframes
Add F-Curve Modifier
Handle Type
Interpolation Mode
Non Linear Animation
Marker
Duplicate Marker to Scene
Edit
Snap
Track Ordering...
File Browser
View
Display Size
Recursion
Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]