Page MenuHome

Keymap: fallback tool preference for RMB select
ClosedPublic

Authored by Campbell Barton (campbellbarton) on Sep 15 2021, 5:17 AM.

Details

Summary

Expose a key-map preference "Fallback Tool (RMB)",
disabled by default.

The right mouse button uses the fallback tool(currently visible selection tool in the toolbar), instead of always tweaking.

When any selection tool is active, right mouse always tweaks.

To enable fallback selection on RMB, set the "Right Mouse Select Action" to "Selection Tool".

Internal changes:

  • Add fall-back key-maps, separate key-maps needed for when the tool is run as a fall-back. This is needed so RMB-select can support fall-back tools, so left-mouse can be used when it's the active tool and RMB can be used as a fall-back action when another tool is active.
  • Add options field to tools so tools without gizmos can enable the full-back tool keymap.
  • Support multiple key-maps for keymap handlers.
  • Fall-back keymaps now co-exist with the tool-keymaps. So both keymaps may be active at once - using different mouse buttons. When gizmos are in use, a highlighted gizmo prioritizes the tool-keymap over the fall-back keymap.

NOTE: at the moment this patch is to get initial user functionality review, the patch isn't ready for a detailed code-review.

3D View: Object/Edit-Mesh, UV Edit-Mesh tools have been tested.

Grease pencil edit-mode needs additional work.

Diff Detail

Repository
rB Blender

Event Timeline

Campbell Barton (campbellbarton) requested review of this revision.Sep 15 2021, 5:17 AM
Campbell Barton (campbellbarton) created this revision.
Campbell Barton (campbellbarton) retitled this revision from Fallback tool support for RMB keymap to Fall-back tool support for RMB keymap (WIP).Sep 15 2021, 5:34 AM
Campbell Barton (campbellbarton) edited the summary of this revision. (Show Details)
  • Add back comment, enable fallback keymap for UV-cursor & annotaiton tools
Campbell Barton (campbellbarton) retitled this revision from Fall-back tool support for RMB keymap (WIP) to Fallback tool support for RMB keymap (WIP).Sep 15 2021, 6:18 AM
  • Remove redundant select tool key-maps.
  • Only use circle-select on drag (allowing click-select).
  • Circle select on drag for the LMB select keymap so it can coexist with add-object tool
  • Expose fallback keymap in the key-map UI
  • Fix ctrl-RMB causing select path to border select too.
  • Fix RMB select-tweak only activating on release when a selection tool is active.

I tested this for Object and Edit mode and the UV editor. All works great!

This revision is now accepted and ready to land.Sep 17 2021, 2:41 PM
  • Support node tools.
  • Support grease pencil edit mode.
  • Resolve unintended changes when fallback-tools weren't enabled.
  • Replace boolean option with an enum.
Campbell Barton (campbellbarton) retitled this revision from Fallback tool support for RMB keymap (WIP) to Keymap: fallback tool support for RMB select.
Campbell Barton (campbellbarton) retitled this revision from Keymap: fallback tool support for RMB select to Keymap: fallback tool preference for RMB select.Sep 21 2021, 9:50 AM
Campbell Barton (campbellbarton) edited the summary of this revision. (Show Details)