right click context menu doesn't work on menus opened from custom keymap #115821

Open
opened 2023-12-05 22:25:14 +01:00 by michael campbell · 2 comments

System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 537.58

Blender Version
Broken: version: 4.1.0 Alpha, branch: main, commit date: 2023-11-25 22:37, hash: 1b6cd937ffc8
Worked: (unsure)

Exact steps for others to reproduce the error

  1. open blender in factory mode
  2. create new keymap for search operator, setting the shortcut to alt f3
  3. press alt f3 over the viewport to open the menu
  4. type insert keyframe
  5. right click on the one that's shows 'i' to the right of it
  6. the menu dissapears rather than bringing up the context menu (the one that shows remove shortcut/set shortcut etc).

video attached for clarification

It also happens if you change the operator of an existing shortcut, for example changing the wm.search_menu to wm.search_operator

**System Information** Operating system: Windows-10-10.0.19045-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 537.58 **Blender Version** Broken: version: 4.1.0 Alpha, branch: main, commit date: 2023-11-25 22:37, hash: `1b6cd937ffc8` Worked: (unsure) **Exact steps for others to reproduce the error** 1. open blender in factory mode 2. create new keymap for search operator, setting the shortcut to alt f3 3. press alt f3 over the viewport to open the menu 4. type insert keyframe 5. right click on the one that's shows 'i' to the right of it 6. the menu dissapears rather than bringing up the context menu (the one that shows remove shortcut/set shortcut etc). video attached for clarification It also happens if you change the operator of an existing shortcut, for example changing the wm.search_menu to wm.search_operator
michael campbell added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-12-05 22:25:15 +01:00
Member

Hi, thanks for the report. Can confirm. It seems context menu is not invoked for elements in operator search menu (for wm.search_menu, it works)
I don't think you require a new shortcut to trigger this bug.
Just open operator search menu: Edit > Operator Search...` then right click

Hi, thanks for the report. Can confirm. It seems context menu is not invoked for elements in `operator search` menu (for `wm.search_menu`, it works) I don't think you require a new shortcut to trigger this bug. Just open `operator search menu: `Edit > Operator Search...` then right click
Pratik Borhade added
Module
User Interface
Status
Confirmed
and removed
Status
Needs Triage
labels 2023-12-06 05:42:58 +01:00
Member

item_context_menu_fn is null for operator search. I'm not sure if we require a new system or we can workaround the existing system of menu search (i.e. use of UI_but_func_search_set_context_menu(but, ui_search_menu_create_context_menu);)

`item_context_menu_fn` is null for operator search. I'm not sure if we require a new system or we can workaround the existing system of menu search (i.e. use of `UI_but_func_search_set_context_menu(but, ui_search_menu_create_context_menu);`)
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#115821
No description provided.