"Assign Shortcut" doesn't work for "View 2D Zoom" #79640

Closed
opened 2020-08-08 13:37:45 +02:00 by Yevgeny Makarov · 10 comments

System Information
Operating system: Darwin-19.5.0-x86_64-i386-64bit 64 Bits
Graphics card: AMD Radeon Pro 455 OpenGL Engine ATI Technologies Inc. 4.1 ATI-3.9.15

Blender Version
Broken: version: all

Short description of error
For "View2D" operators (view2d.zoom_in, view2d.zoom_border)
you can change existing shortcut with "Change Shortcut" but
there is no "Assign Shortcut" if a shortcut doesn't already exist.

For example Zoom In/Out in Node Editor or Zoom Border in Sequencer.

Exact steps for others to reproduce the error

  • Node Editor
  • View > Zoom In
  • Remove existing shortcuts
  • Try "Assign Shortcut" with right click
**System Information** Operating system: Darwin-19.5.0-x86_64-i386-64bit 64 Bits Graphics card: AMD Radeon Pro 455 OpenGL Engine ATI Technologies Inc. 4.1 ATI-3.9.15 **Blender Version** Broken: version: all **Short description of error** For "View2D" operators (view2d.zoom_in, view2d.zoom_border) you can change existing shortcut with "Change Shortcut" but there is no "Assign Shortcut" if a shortcut doesn't already exist. For example Zoom In/Out in Node Editor or Zoom Border in Sequencer. **Exact steps for others to reproduce the error** - Node Editor - View > Zoom In - Remove existing shortcuts - Try "Assign Shortcut" with right click
Author
Member

Added subscriber: @jenkm

Added subscriber: @jenkm
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Not sure I can reproduce.

  • This is set to a non-keyboard shortcut by default for me ({key Wheel In})
  • Change Shortcut is thus prevented (see tooltip), but you can remove the shortcut as you noted
    image.png
  • This then gets {key Numpad +} assigned automatically here
  • I can then change the shortcut to something else without problems...
    image.png

Just to make sure: is this different for you @jenkm ?

Not sure I can reproduce. - This is set to a non-keyboard shortcut by default for me ({key Wheel In}) - `Change Shortcut` is thus prevented (see tooltip), but you can remove the shortcut as you noted ![image.png](https://archive.blender.org/developer/F8765497/image.png) - This then gets {key Numpad +} assigned automatically here - I can then change the shortcut to something else without problems... ![image.png](https://archive.blender.org/developer/F8765500/image.png) Just to make sure: is this different for you @jenkm ?
Author
Member

Remove {key Numpad +} as well.

You can change existing shortcut with "Change Shortcut" but
there is no "Assign Shortcut" if a shortcut doesn't already exist.

Remove {key Numpad +} as well. You can change existing shortcut with "Change Shortcut" but there is no "Assign Shortcut" if a shortcut doesn't already exist.
Member

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'
Member

Ah, get it now...

Ah, get it now...
Philipp Oeser self-assigned this 2020-08-10 12:16:16 +02:00
Member

Note there is a comment at the start of WM_keymap_guess_opname

  /* Op types purposely skipped  for now:
   *     BRUSH_OT
   *     BOID_OT
   *     BUTTONS_OT
   *     CONSTRAINT_OT
   *     PAINT_OT
   *     ED_OT
   *     FLUID_OT
   *     TEXTURE_OT
   *     UI_OT
   *     VIEW2D_OT
   *     WORLD_OT
   */

So this is not really a bug (will change to TODO), the "View2D" is there, it is just not bound to a specific spacetype.
Guess this can be supported though, patch incoming...

Note there is a comment at the start of `WM_keymap_guess_opname` ``` /* Op types purposely skipped for now: * BRUSH_OT * BOID_OT * BUTTONS_OT * CONSTRAINT_OT * PAINT_OT * ED_OT * FLUID_OT * TEXTURE_OT * UI_OT * VIEW2D_OT * WORLD_OT */ ``` So this is not really a bug (will change to TODO), the "View2D" is there, it is just not bound to a specific spacetype. Guess this can be supported though, patch incoming...

This issue was referenced by dbf5bb7af2

This issue was referenced by dbf5bb7af2e45ea59c7a15346a5ee989828f2d07
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
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#79640
No description provided.