Visual Keymap Editor #76678
Open
opened 2020-05-12 13:40:49 +02:00 by William Reynish
·
41 comments
No Branch/Tag Specified
main
blender-v3.6-release
temp-sculpt-dyntopo
temp-sculpt-dyntopo-hive-alloc
asset-shelf
brush-assets-project
blender-v3.3-release
tmp-usd-python-mtl
asset-browser-frontend-split
node-group-operators
blender-v2.93-release
universal-scene-description
temp-sculpt-attr-api
blender-v3.5-release
realtime-clock
sculpt-dev
gpencil-next
bevelv2
microfacet_hair
blender-projects-basics
xr-dev
principled-v2
v3.3.7
v2.93.18
v3.5.1
v3.3.6
v2.93.17
v3.5.0
v2.93.16
v3.3.5
v3.3.4
v2.93.15
v2.93.14
v3.3.3
v2.93.13
v2.93.12
v3.4.1
v3.3.2
v3.4.0
v3.3.1
v2.93.11
v3.3.0
v3.2.2
v2.93.10
v3.2.1
v3.2.0
v2.83.20
v2.93.9
v3.1.2
v3.1.1
v3.1.0
v2.83.19
v2.93.8
v3.0.1
v2.93.7
v3.0.0
v2.93.6
v2.93.5
v2.83.18
v2.93.4
v2.93.3
v2.83.17
v2.93.2
v2.93.1
v2.83.16
v2.93.0
v2.83.15
v2.83.14
v2.83.13
v2.92.0
v2.83.12
v2.91.2
v2.83.10
v2.91.0
v2.83.9
v2.83.8
v2.83.7
v2.90.1
v2.83.6.1
v2.83.6
v2.90.0
v2.83.5
v2.83.4
v2.83.3
v2.83.2
v2.83.1
v2.83
v2.82a
v2.82
v2.81a
v2.81
v2.80
v2.80-rc3
v2.80-rc2
v2.80-rc1
v2.79b
v2.79a
v2.79
v2.79-rc2
v2.79-rc1
v2.78c
v2.78b
v2.78a
v2.78
v2.78-rc2
v2.78-rc1
v2.77a
v2.77
v2.77-rc2
v2.77-rc1
v2.76b
v2.76a
v2.76
v2.76-rc3
v2.76-rc2
v2.76-rc1
v2.75a
v2.75
v2.75-rc2
v2.75-rc1
v2.74
v2.74-rc4
v2.74-rc3
v2.74-rc2
v2.74-rc1
v2.73a
v2.73
v2.73-rc1
v2.72b
2.72b
v2.72a
v2.72
v2.72-rc1
v2.71
v2.71-rc2
v2.71-rc1
v2.70a
v2.70
v2.70-rc2
v2.70-rc
v2.69
v2.68a
v2.68
v2.67b
v2.67a
v2.67
v2.66a
v2.66
v2.65a
v2.65
v2.64a
v2.64
v2.63a
v2.63
v2.61
v2.60a
v2.60
v2.59
v2.58a
v2.58
v2.57b
v2.57a
v2.57
v2.56a
v2.56
v2.55
v2.54
v2.53
v2.52
v2.51
v2.50
v2.49b
v2.49a
v2.49
v2.48a
v2.48
v2.47
v2.46
v2.45
v2.44
v2.43
v2.42a
v2.42
v2.41
v2.40
v2.37a
v2.37
v2.36
v2.35a
v2.35
v2.34
v2.33a
v2.33
v2.32
v2.31a
v2.31
v2.30
v2.28c
v2.28a
v2.28
v2.27
v2.26
v2.25
Labels
Clear labels
Issues relating to security: https://wiki.blender.org/wiki/Process/Vulnerability_Reports
Apply labels
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
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
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
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
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
Issues relating to security: https://wiki.blender.org/wiki/Process/Vulnerability_Reports
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 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
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
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
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
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
Milestone
Set milestone
Clear milestone
No items
No Milestone
Projects
Set Project
Clear projects
No project
Assignees
Assign users
Clear assignees
No Assignees
18 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#76678
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
While Blender's keymap editor is very flexible, it isn't very easy to get a clear overview, to spot conflicts, or to edit in general.
Issues with the current keymap editor:
We can solve these issues with a new approach for how the keymap editor should work:
Rather than just listing entries in a long nested list, we can do something more visual that shows the layout of the keyboard.
Above the keyboard, users can choose which editor and which mode to see. You can also pick if you want to edit the main keyboard, the keypad, or the mouse buttons:

An example of how the Mouse section could work:

In the top right you can choose which modifiers to take into account for the keyboard below. In this case Shift is enabled, so we only show items that are activated while holding Shift.

The keys themselves highlight if there is a shortcut added. The blue key here is the one that is selected. The dot means that it was customized. The warning symbol means there is a conflict on this key.

When a key is selected, you can see the operator assigned to it below. This is similar to the current keymap editor:

On the left we have a way to search for all operators, filtered by the current context, which you can apply to the current key in one of two ways:
Normally you see a list of all operators which apply in the current context:

You can search this list to narrow the results down:

Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @WilliamReynish
Added subscribers: @pablovazquez, @ideasman42
Added subscriber: @JacquesLucke
Is the keyboard layout supposed to look different depending on the keyboard the user uses?
Added subscriber: @DuarteRamos
@JacquesLucke Ideally it would take the current input language into account, but not sure how feasible it is to add support for all regions. But, some select ones would probably need to be added, like an AZERTY layout. Ideally it would simply auto-detect the input language so that it 'just works'.
Added subscriber: @AnadinX
This looks great I do have a use-case where its slightly less useful..
I like the built in keymap but change my navigation controls to be the usual ATL+LMB/MMB/RMB. I do this across all editors/contexts. its currently quite easy to modify all editor versions of similar keymaps by using the search.
This may be something that's less important but thought it was worth mentioning as there are a number of things that are shared (circle/box selected for instance)
With this proposal we'd have to switch editor manually again to see if that editor even had the mapping.
Added subscriber: @Imaginer
I like this in general, but I'd also like to request that an "Advanced Mode" be retained which would show the version we have now, because of things like what @AnadinX said about having a list that spans multiple contexts, and for the ability to have multiple keymaps open at the same time which it looks like the new design wouldn't allow. But for general use and conflict detection this looks like a great improvement!
Added subscriber: @AlexeyPerminov
Added subscriber: @ckohl_art
Added subscriber: @CobraA
I too agree, this one seems you can navigate & change one thing at time which would be slow to customize an entire keymap while the current one allows for much more flexibilty it's just a long list of scrolling when it should have been a multi-column layout
Added subscriber: @deadpin
I think the primary reason why folks would want to retain an "advanced" list of entries that span multiple contexts at once is because there's no hierarchy to the keymap. In many instances I want to add/change a keymap entry at a "top level" and have it apply to everything below that unless overridden later.
Why do I have to add/change the same keymap entry (key and action) for both "Object Mode" and "Mesh" today? What I really want is to add/change that entry for "Viewport" and have it apply to object mode and mesh accordingly.
Why do I have to add/change the same keymap entry (key and action) 3 times for "Object Mode", "Mesh", and "Curve" modes when they will all call the same pie menu using the same key? What I really want to say is just add this pie menu entry to the "Viewport" and have it apply in all the lower modes.
You could still override entries for things like "Mesh" mode individually but for the most part I want a top level hierarchy so I can set most things once.
Beyond that, being able to draw the various keyboard and mouse layouts will probably be very difficult although I really do like it :)
If a hierarchy won't be added, consider allowing multiple "contexts" to be selected at once in your selector maybe? Then display all the actions somehow on the same keyboard layout. It would allow folks to modify all the contexts they have selected at once. Would get messy real quick. At least consider it and mention it in the design even if you chose to not do it.
@deadpin
You can already do that. Just add a keymap entry to the
3D View (Global)
section (or theWindow
section which is truly global). This will make it work in any mode, so long as a keymap entry in a specific mode doesn't override it. I think the reason why people add multiple keymap entries is because they want it to be there for only some modes, not every mode.Not quite, at least for
3D View (Global)
. Adding a custom keymap entry there doesn't work in Object mode (weirdly enough). It's why e.g. the Subdivision Set operator is duplicated for Object mode explicitly even -- 6 extra keymap entries that are nothing but clutter.Setting at Window level seems like a workaround to a legitimate bug perhaps. Haven't tried it to see if it would work though I wouldn't want my keybinding to work while my cursor is over the outliner (operator shouldn't have to care too much about the region)
If folks are wanting to view multiple contexts at once, I wonder why if not to set the same key in multiple places more easily? All I'm suggesting is if that's really the case, we should fix that problem directly, instead of keeping the older list around (unless there's other reasons to do that)
I think you've found a bug there. When I try working with the Subdivision Set operator in a global context all kinds of weird things happen. In fact the Subdivision Set operator seems to display unexpected behavior (to the user at least) even with the default keymap.
As to why you'd want a large list or to see multiple contexts at once is to get a better overview of whats there, not to mention that lists are easier to scan through than the visual keymap proposed here, and you can also have multiple keymaps open and editable at the same time. Another reason is that sometimes you can't currently just assign to a global context because you actually need a different operator for each context; an example of this is the select all operator. There are many different select all operators like
object.select_all
,mesh.select_all
,curve.select_all
,action.select_all
,gpencil.select_all
, etc. (spread across multiple contexts) that all use the same shortcut (A). Changing the shortcut for this operator is already hard, but without access to a list like we have now it would be much harder.I think the improvements suggested here are useful, but I think there is still value in being able to work with the current list, so I don't think it should be removed, at least for now. As this progresses, solutions may be found that make the list view obsolete, but the current proposal doesn't account for the more complex situations.
Added subscriber: @LeoSch
Added subscriber: @Schiette
Added subscriber: @1D_Inc
This proposal provides key-oriented solution instead of operator-oriented.
Operator-oriented is good in editing in general, since it provide clear view of the entire operators structure per modes and the list of available assigned operators, and also can be filtered across modes.
I think proposed solution can be used as a layout viewer, since it prioritizes keys instead of operators, and even with that in mind you have to check all Ctrl Alt Shift combinations to get full key map image per single mode.
Maybe, adding Any button to the filter, that will expose all key's modifiers will help that.
Operators have too long names to fit buttons GUI, and writings like "Start" and "End" are are far from self-evident.

Also it is unknown how to be with things like that
In my opinion, Blender have too complex keymap system to be comfortably exposed in key-oriented way.
Because they have different functionality. There is extrude operator in mesh mode and no extrude in object mode.
@1D_Inc I don’t think that’s true. The current keymap editor is not really operator-centric at all. It doesn’t list all operators and then which keys are assigned to them - It just primitively lists all the keymap entries in a rather unsorted list. That’s not operator-centric.
@WilliamReynish Technicaly, true, it is not operators-centric, it is assigned operators-centric, since its a list of assigned operators, which allows you to observe operators by modes, including modal ones.
Removed subscriber: @deadpin
Added subscriber: @L0Lock
This comment was removed by @L0Lock
Added subscriber: @brecht
@L0Lock, I'm afraid I have to remove your comment because of this:
https://lists.blender.org/pipermail/bf-committers/2020-July/050616.html
This content can't be posted on any of the Blender development websites.
@brecht then I'd rather just remove the screenshots from my post - eventually replace them with mockups at some point - but keep my comment alive.
It's not just screenshots that are not allowed, detailed explanation of the implementation in other applications should not be posted here either. You can write a new comment with just explanations of how you think Blender should work.
Then can I have a copy of my original comment please ?
https://pastebin.com/E60wPGtB
@L0Lock
Are you planing to reconstruct the entire post?
Maybe I am too early, but
No. This solution has a hard limit - usable keys are not infinte.
That's why such tools are used with spacebar menu and command alias, especially during repetitive linear work.
We are currently retraining such an "advanced user" to the professional wide-range modelling layout.
It is always painful, but necessary for productive teamwork.
Yes, but I need to rethink the entire thing and probably make my own mockups. It will take some time x)
By the way, are there some form of tool or asset pack to create the beautiful mockups we often see here? I'm sure the community would be happy to be able to use them too (and me). Unless it's programming a custom Blender build x)
You show an example where there are existing operators to call. Any operator can be hotkeyable AFAIK, so creating a "custom command" for that would be useless since you can already hotkey the operator itself.
But what about this that don't exist as operators ? What about macros ?
I personally had to create scripts just to be able to bind things to my keyboard, like a key to reset all Stretch To constraints in my armature, another to Set Inverse all the Child Of, increase/decrease the gizmo size, ... Things I can't do with a search bar unless I first create the operators myself. They can be very user-specific, they can be temporarily, but if there's a way to at least make it easier, why not ?
Added subscriber: @AlienTux
Added subscriber: @ionarn
Added subscriber: @Nurb2Kea
Added subscriber: @SHEK