Page MenuHome

Keymap Preferences: Use Shortcuts for Tools
Needs ReviewPublic

Authored by William Reynish (billreynish) on Mar 27 2019, 10:50 PM.




This patch adds a new option in the Keymap Preferences to use shortcuts to activate tools rather than modal operators.

Some users have shown interest in working this way, and I think this kind of thing is exactly one of the most useful uses of the keymap preferences. I think it makes switching tools more fun and immediate, with no jumping through hoops or opening menus just to switch active tools.


Currently it replaces the (IMO rather silly) Extra Shading Pie Menu toggle:

With the option enabled, using shortcuts such as G, R, S, E, Ctrl-B etc will switch active tools instead of using the modal operators.

Currently only Transform and Mesh Edit Mode tools are supported in the 3D View, but I can easily make it work for the other modes and editors. This is enough to get a feel for it. If approved, I will fill in the rest.

Diff Detail

Event Timeline

William Reynish (billreynish) edited the summary of this revision. (Show Details)

Would rather removing shading option is handled as a separate patch (having said that - it's fine by me, @Brecht Van Lommel (brecht) could you check w/ artists in the studio? - since it was added on their request)

@Campbell Barton (campbellbarton) I can separate removal of the shading option if you prefer - for now it was just slightly faster/easier to replace it.

William Reynish (billreynish) edited the summary of this revision. (Show Details)
William Reynish (billreynish) edited the summary of this revision. (Show Details)

This also affects the tools that are in the right click context menus?
That's the part I'm most interest in. Currently the modal tools that are on the context menus are pretty much unusable, they should be calling the active tools as well.

Currently it affects just the basic transform tools and a handful of Edit Mode tools, like Extrude, Bevel, Inset Faces, Loop Cut, Knife, Shrink/Fatten, Rip Region.

But the idea is to make it comprehensive, so that, for any shortcut that activates a modal operator for which we have a corresponding active tool, activate that tool instead.

This is related to the keymap and using hotkeys to switch tools, and has really nothing to do with the context menus.

Fixed the Select Tool tweak events

I hope to see something similar for the tools in the context menus in the future, specially for the edit mode tools. ๐Ÿ‘

Added support for Curve Edit mode and UV Editor.

The UV Editor is a bit weak here since we don't have proper Move, Rotate and Scale tools here yet.

William Reynish (billreynish) updated this revision to Diff 14477.EditedMar 28 2019, 8:40 PM

Added support for Grease Pencil Edit and Sculpt modes.

As far as I can see, it's complete now. Awaiting review.

Note: UV Editor will remain lame until we have distinct tools for Move, Rotate Scale. Will update this when that is added.

Main Question as I see it:

  • Is it OK to replace the Extra Shading Menu toggle, or should I add it separately?

If we agree to remove it anyway, it seems like it's slightly easier just to replace it :)

Does this preserve the ability to double tap G key in edit mode to slide elements?

@Tomas (Rusculleda) No, currently it does not. G simply immediately switches to the Move tool.

The whole point of this toggle is for users who prefer the active tools, so they could just switch to the Vertex Slide tool.