- Fix T63860 Add Context menu for nav_bar for all spaces.
- Merge header, footer, nav_bar context menu as 1 operator, named screen_context_menu
|Brecht Van Lommel (brecht)|
|Campbell Barton (campbellbarton)|
|William Reynish (billreynish)|
will renaming be a problem? can it break saved keymaps?
I wanted to add the context_menu operator in the User Interface keymap.
But context_menu operator was firing in other regions too.
Logic for the change seems to be sharing a keymap for 3 different region types because they all happen to use a similar context menu.
Header/Footer makes since they're basically the same,
Using the same keymap for BUTTONS_OT_context_menu doesn't seem so closely related - sharing a keymap for a space type with the keymap for a region type.
Suggest to share the keymap for header footer but leave other key-maps/menu's as-is.
Also a "Context Menu" keymap is too vague, suggest "Screen Context Menu" km_screen_context_menu(...) since we have many other kinds of context menus.