Known-issues with interaction handling inside pop-ups #73565

Open
opened 2020-02-03 15:27:11 +01:00 by Julian Eisel · 12 comments
Member

Known-issues with interaction handling inside pop-ups

Pop-up in this case includes menus and popovers.

There are quite some old and some new issues with pop-ups. Their increased usage after 2.80 means that users run into them more and more.

In this task all related known issues should be listed, to give a good view over the situation. Eventually it should help deciding how to move forward.

  • Resetting default value does not work in popovers or menus. (#69200)
  • Context Manual Help Operator does not work in context menus. (#67201)
  • Add Driver : Clicking the picker doesn't work. (#58341)
  • Popover: Color Sampling doesn't work. (#63890)
  • No color drag'n'drop in Viewport Shading popover. (#70654)
  • Eyedropper does nothing on "New" in Uv image editor (button is disabled as workaround). (#32396)
  • Most ID selectors (like e.g. the 'target' ones in constraints and modifiers) do not show difference between local and linked IDs. Even worse, they do not allow to select linked ones when a local one exists with the same name. (#73156) (d6cefef98f)
  • Double-click not working in UI_Lists in popovers (e.g., grease pencil layers renaming) (#66286)
  • #76833 (Eyedropper in object selection box doesn't work)
  • #76124 (Cannot use keyframes, File select, File picker (eyedropper), etc. in modal Operators/Panels called by WindowManager)

Most of these issues probably have similar roots (e.g. code not checking if CTX_wm_menu() can be used over CTX_wm_region(), but often times the former returns NULL when it shouldn't).

# Known-issues with interaction handling inside pop-ups *Pop-up in this case includes menus and popovers.* There are quite some old and some new issues with pop-ups. Their increased usage after 2.80 means that users run into them more and more. In this task all related known issues should be listed, to give a good view over the situation. Eventually it should help deciding how to move forward. * Resetting default value does not work in popovers or menus. (#69200) * Context Manual Help Operator does not work in context menus. (#67201) * Add Driver : Clicking the picker doesn't work. (#58341) * Popover: Color Sampling doesn't work. (#63890) * No color drag'n'drop in Viewport Shading popover. (#70654) * Eyedropper does nothing on "New" in Uv image editor (button is disabled as workaround). (#32396) * ~~Most ID selectors (like e.g. the 'target' ones in constraints and modifiers) do not show difference between local and linked IDs. Even worse, they do not allow to select linked ones when a local one exists with the same name. (#73156)~~ (d6cefef98f) * Double-click not working in UI_Lists in popovers (e.g., grease pencil layers renaming) (#66286) * #76833 (Eyedropper in object selection box doesn't work) * #76124 (Cannot use keyframes, File select, File picker (eyedropper), etc. in modal Operators/Panels called by WindowManager) Most of these issues probably have similar roots (e.g. code not checking if `CTX_wm_menu()` can be used over `CTX_wm_region()`, but often times the former returns `NULL` when it shouldn't).
Author
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel

#84636 was marked as duplicate of this issue

#84636 was marked as duplicate of this issue

#78723 was marked as duplicate of this issue

#78723 was marked as duplicate of this issue
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

Added subscriber: @ideasman42

Added subscriber: @ideasman42

I looked into this yesterday... there is a complication in using CTX_wm_menu, as-is. Which is that you can nest popup menus mixed with popovers.

The complication comes from:

  • We often want menus to execute in the context that activated them (so an operator should get the menu at the point it was opened, not the menu which is currently open). There are some exceptions to this, when right clicking on a menu item for e.g.
  • The rules regarding menus/context need to be consistent over multiple areas (poll, operator execution, popover refresh. to name a few).

I tried out always setting CTX_wm_menu, then adding a function to access parent menus when looking for buttons.

While this did work, it sometimes causes popovers to close immediately after dragging a button (see P1267).
Some more time could be spent to make this work, I think it's worth looking into better alternatives.

I looked into this yesterday... there is a complication in using `CTX_wm_menu,` as-is. Which is that you can nest popup menus mixed with popovers. The complication comes from: - We *often* want menus to execute in the context that activated them (so an operator should get the menu at the point it was opened, not the menu which is currently open). There are some exceptions to this, when right clicking on a menu item for e.g. - The rules regarding menus/context need to be consistent over multiple areas (poll, operator execution, popover refresh. to name a few). ---- I tried out always setting `CTX_wm_menu`, then adding a function to access parent menus when looking for buttons. While this did work, it sometimes causes popovers to close immediately after dragging a button (see [P1267](https://archive.blender.org/developer/P1267.txt)). Some more time could be spent to make this work, I think it's worth looking into better alternatives.
Member

Added subscriber: @Imaginer

Added subscriber: @Imaginer
Member

#76635 may be one to include here.

#76635 may be one to include here.
Member

Added subscribers: @Bayron-Fernel, @lichtwerk

Added subscribers: @Bayron-Fernel, @lichtwerk

Added subscriber: @ce3po

Added subscriber: @ce3po

D9395 fix:

  • #58341: Add Driver : Clicking the picker doesn't work
  • #76833: Eyedropper in object selection box doesn't work

D9538 fix:

  • #63890: Popover: Color Sampling doesn't work

D9608 fix:

  • #69200: Resetting default value does not work in popovers or menus
[D9395](https://archive.blender.org/developer/D9395) fix: - #58341: Add Driver : Clicking the picker doesn't work - #76833: Eyedropper in object selection box doesn't work [D9538](https://archive.blender.org/developer/D9538) fix: - #63890: Popover: Color Sampling doesn't work [D9608](https://archive.blender.org/developer/D9608) fix: - #69200: Resetting default value does not work in popovers or menus
Author
Member

Added subscribers: @rcorre-3, @rjg

Added subscribers: @rcorre-3, @rjg
Philipp Oeser removed the
Interest
User Interface
label 2023-02-10 09:24:50 +01:00
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
7 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#73565
No description provided.