Export modal doesn't focus input on the default button consistently #108584

Closed
opened 2023-06-04 21:56:38 +02:00 by Atul-Varma · 4 comments

System Information
Operating system: Windows
Graphics card:

Blender Version
Broken: (example: 2.80, edbf15d3c0, master, 2018-11-28, as found on the splash screen)
Worked: (newest version of Blender that worked as expected)

Short description of error

  1. Press F3, type "gltf" to show "file -> export to gltf" as the first option
  2. Press enter in the resulting dialog.

Sometimes, the second press of enter saves the file, other times it does nothing. Further presses of enter do nothing and I have to use the mouse to click on the "export gltf" button in order to proceed.

As someone who is frequently exporting to gltf and would like to do so habitually (without having to aim a mouse cursor) this is inconvenient.

Exact steps for others to reproduce the error
Based on the default startup or an attached .blend file (as simple as possible).

**System Information** Operating system: Windows Graphics card: **Blender Version** Broken: (example: 2.80, edbf15d3c044, master, 2018-11-28, as found on the splash screen) Worked: (newest version of Blender that worked as expected) **Short description of error** 1. Press F3, type "gltf" to show "file -> export to gltf" as the first option 2. Press enter in the resulting dialog. Sometimes, the second press of enter saves the file, other times it does nothing. Further presses of enter do nothing and I have to use the mouse to click on the "export gltf" button in order to proceed. As someone who is frequently exporting to gltf and would like to do so habitually (without having to aim a mouse cursor) this is inconvenient. **Exact steps for others to reproduce the error** Based on the default startup or an attached .blend file (as simple as possible).
Atul-Varma added the
Priority
Normal
Status
Needs Triage
Type
Report
labels 2023-06-04 21:56:39 +02:00
Member

Here I have always been able to confirm saving when pressing Enter.

Could you try find out what other stuff you have done when the file dialog is open and cause it to lose focus so we could replicate the problem? Thanks!

Here I have always been able to confirm saving when pressing `Enter`. Could you try find out what other stuff you have done when the file dialog is open and cause it to lose focus so we could replicate the problem? Thanks!
YimingWu added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-06-05 04:25:31 +02:00
Author

Thanks for the quick response, @ChengduLittleA.

One thing I'm noticing as I try to reproduce this bug is that it appears to depend on the position of my mouse cursor when I press enter. If my cursor is within the "Blender File View" dialog box, then pressing enter does work. However, if it's not, then pressing enter appears to do nothing.

I'm also noticing that if my mouse is hovering over any kind of widget within the dialog box, pressing enter while above it has the same effect as clicking on it: e.g. it toggles a checkbox, expands/un-expands a collapsible area, and so on. This is counter to my expectation from using other apps that support keyboard accessibility on Windows, where use of the keyboard doesn't depend at all on the current location of the mouse cursor.

Is this some kind of setting that I've accidentally enabled?

Also, FWIW, I am on Blender 3.5.1 from 2023-04-24 18:11.

Thanks for the quick response, @ChengduLittleA. One thing I'm noticing as I try to reproduce this bug is that it appears to depend on the position of my mouse cursor when I press enter. If my cursor is within the "Blender File View" dialog box, then pressing enter _does_ work. However, if it's not, then pressing enter appears to do nothing. I'm also noticing that if my mouse is hovering over any kind of widget within the dialog box, pressing enter while above it has the same effect as clicking on it: e.g. it toggles a checkbox, expands/un-expands a collapsible area, and so on. This is counter to my expectation from using other apps that support keyboard accessibility on Windows, where use of the keyboard doesn't depend at all on the current location of the mouse cursor. Is this some kind of setting that I've accidentally enabled? Also, FWIW, I am on Blender 3.5.1 from 2023-04-24 18:11.
Member

Ahh I see. Indeed I can replicate the problem now.

I think this might be a limitation of the window manager and widgets in Blender. Will poke developers about it.

Ahh I see. Indeed I can replicate the problem now. I think this might be a limitation of the window manager and widgets in Blender. Will poke developers about it.
Member

The mouse needs to hover the File Browser so it responds to events. To a degree it's a limitation of the current implementation: proper modal windows with event capturing would have to be supported on all OSes. But it's also a design question of how far we want to go towards modal dialogs, which could be argued violate our non-blocking design paradigm.

Mouse hover based focus on widgets is also a long standing Blender feature that many people appreciate. It indeed gets in the way at times, it's a trade-off. Arguably making enter presses act the same as a mouse click is taking it a bit too far, but that is a bigger design discussion as well.

So closing as there is no bug here as far as I can see, more like design trade-offs or known limitations. Thanks for the report nevertheless.

The mouse needs to hover the File Browser so it responds to events. To a degree it's a limitation of the current implementation: proper modal windows with event capturing would have to be supported on all OSes. But it's also a design question of how far we want to go towards modal dialogs, which could be argued violate our [non-blocking design paradigm](https://wiki.blender.org/wiki/Human_Interface_Guidelines/Paradigms#Non_Blocking). Mouse hover based focus on widgets is also a long standing Blender feature that many people appreciate. It indeed gets in the way at times, it's a trade-off. Arguably making enter presses act the same as a mouse click is taking it a bit too far, but that is a bigger design discussion as well. So closing as there is no bug here as far as I can see, more like design trade-offs or known limitations. Thanks for the report nevertheless.
Blender Bot added
Status
Archived
and removed
Status
Needs Info from Developers
labels 2023-06-08 11:31:07 +02: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
3 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#108584
No description provided.