Maniphest T63392

It is not possible to activate select tool using hotkey without changing its mode
Closed, Archived

Assigned To
Abid Maqbool (cto.abid)
Authored By
Ludvik Koutny (rawalanche)
Apr 8 2019, 4:06 PM
Tags
  • BF Blender
Subscribers
Aqib Maqbool (aqib)
Brecht Van Lommel (brecht)
Campbell Barton (campbellbarton)
Ludvik Koutny (rawalanche)
Zsolt (Chromauron)
Tokens
"Burninate" token, awarded by Chromauron."Like" token, awarded by cto.abid.

Description

System Information
Operating system: Windows 10
Graphics card: GTX1080Ti

Blender Version
Broken: 2.8 latest master
Worked: probably never

Short description of error
Currently, it is not possible to hotkey activation of the select tool in the toolbar. It is only possible to directly hotkey select tools mode, using operators such as builtin.select_box, builtin.select_lasso, builtin.select_circle etc... but this means that user can not create a hotkey which would bring him in the select tool in the last mode he has set up. This means that user has to manually change select mode of the select tool every time he switches back to the tool. There is no hotkey-able equivalent of just clicking on the select tool in the toolbar.

Exact steps for others to reproduce the error
1, Assign a shortcut to select tool on the toolbar
2, Change select tool to different mode (for example circle)
3, Switch to different tool
4, Switch back to select tool using the assigned shortcut

Result: The select tool mode was reverted to the one selected when the shortcut was assigned through the UI context menu
Expected: The select tool remains in last manually selected mode when activated through the assigned shortcut, in the same way when it's clicked on using a mouse cursor.

Event Timeline

Ludvik Koutny (rawalanche) created this task.Apr 8 2019, 4:06 PM
Brecht Van Lommel (brecht) lowered the priority of this task from 90 to High.Apr 9 2019, 1:25 PM
Aqib Maqbool (aqib) claimed this task.May 5 2019, 5:40 AM
Aqib Maqbool (aqib) added a subscriber: Aqib Maqbool (aqib).

Hi @Ludvik Koutny (rawalanche)! I want to work on this bug fixes. I want to know more about that's. If anyother person is working on this bug??? Also if assigning shortcuts should works on all the multi menu button in tool shelf???

Abid Maqbool (cto.abid) claimed this task.May 27 2019, 4:55 AM
Abid Maqbool (cto.abid) awarded a token.
Campbell Barton (campbellbarton) added a subscriber: Campbell Barton (campbellbarton).May 27 2019, 5:34 AM

What do you mean by the tool mode?

Campbell Barton (campbellbarton) lowered the priority of this task from High to 30.May 27 2019, 5:35 AM
Campbell Barton (campbellbarton) changed the task status from Unknown Status to Unknown Status.May 27 2019, 5:47 AM

Talked online, this is already supported, enable cycle option in the keymap.

Abid Maqbool (cto.abid) added a comment.May 27 2019, 5:58 AM

Where is cycle option?

Abid Maqbool (cto.abid) added a comment.EditedMay 27 2019, 6:08 AM

I think cycle option works different. It's already in Blender 2.8 default by using W key in 3d Viewport.

If Some tool have e.g. hundred of sub menus then cycle through is a lot of pain for user.

I this it's easy for user to just selects last tool (active one) which is shown in the tool bar to select with keyboard. like he can select with mouse

Cycling through item's is different from directly selection last item (active) like if you are currently selected move tool and directly want to select box select tool.

Ludvik Koutny (rawalanche) added a comment.EditedMay 27 2019, 12:36 PM
In T63392#688548, @Campbell Barton (campbellbarton) wrote:

Talked online, this is already supported, enable cycle option in the keymap.

Sorry but I don't think you understood the issue. It's not about cycling the mode. It's about making the mode persistent. So that if you switch to a different tool and switch back to select tool, you are able to switch back to last select tool mode. Please read the report carefully, especially the reproduction steps. Thank you.

What I meant is that the Select Tool, the button on the tool panel, can be in in multiple modes:
Box select
Circle Select
Lasso select
Single select

If you set the Select Tool mode to circle select for example, then switch to Move Tool, and then use HOTKEY to switch back to Select Tool, it won't switch back to Circle Select, but instead changes the mode back to Box Select. It is not possible to assign the select tool itself to a keymap, only a specific mode of the select tool.

At the same time, it is possible to CLICK on the Select Tool button, to go back to it without changing its mode. So here's an action that can be activated using mouse click, but not a keyboard shortcut.

I have no idea how else to explain it.

Campbell Barton (campbellbarton) added a comment.EditedMay 27 2019, 12:54 PM

Currently using keymaps you can activate a spesific tool directly, or you can cycle the group of tools (which first activates the group, then cycles).

If we want some additional ways to activate tools they can be added - but it's a feature request.

Ludvik Koutny (rawalanche) added a comment.EditedMay 27 2019, 2:30 PM
In T63392#688789, @Campbell Barton (campbellbarton) wrote:

Currently using keymaps you can activate a spesific tool directly, or you can cycle the group of tools (which first activates the group, then cycles).

If we want some additional ways to activate tools they can be added - but it's a feature request.

Why was it confirmed and tagged as high priority by a person responsible for 2.8 UI then? Isn't impossibility to preserve a tool state selected by the user severe enough usability issue? 2.8 relies on the tool system, I doubt anyone will be happy with their tools forgetting their state as long as they use hotkeys.

Campbell Barton (campbellbarton) added a comment.May 28 2019, 2:22 AM

@Ludvik Koutny (rawalanche) if you use cycle it preserves the select state, it just cycles after you press it again.

Brecht Van Lommel (brecht) added a subscriber: Brecht Van Lommel (brecht).EditedMay 28 2019, 3:00 AM

Maybe it's just the Industry Compatible keymap that needs a tweak to use cycle?

I remember cycle not working the way it does now. But it seems to be working well now as far as I can tell. It might have changed at some point (perhaps even before this report), or I'm misremembering.

Campbell Barton (campbellbarton) added a comment.EditedMay 28 2019, 3:26 AM

This didn't change for a long time.

Note that we could have additional behavior

mode = [
  `SET`,                 # current default.
  `SET_GROUP_OR_CYCLE`,  # current cycle=True behavior.
  `SET_GROUP`,           # new behavior, matches clicking on the button  (never cycles).
]

Altough cycling seems more useful, the only reason you'd not want to cycle is if you want to have a key set a tool and be able to press it multiple times without worrying if it's active or not.

This seems one of many things that could be different, but not high priority.

Abid Maqbool (cto.abid) added a comment.May 28 2019, 6:19 AM

Actually, It works exactly as the proposed bug, idea or feature expects.

Only cycle option is confusing for general users, means he/she have to know about for this only small feature.

Just to clear to new users, it works in this way:

I think, currently only limitation are:

  • Your have to go to pre->keymapfor this feature, I think it should be automatic assigned cycle (e.g. if assign short-cut to parent icon (tool-bar) then cycle because user can assign individual shortcut to each icon by opening sub menu and assign short-cut there, like as shown:

  • Also when cycle user can not see assign short-cut to that's icon (e.g. it's moved), Although for sub icon short-cut can be see easily (e.g. tool-tip and sub-menu)
Ludvik Koutny (rawalanche) added a comment.EditedMay 28 2019, 10:24 AM
In T63392#689299, @Campbell Barton (campbellbarton) wrote:

@Ludvik Koutny (rawalanche) if you use cycle it preserves the select state, it just cycles after you press it again.

Yes, but this is *extremely* inconvenient, as it messes up your select tool mode any time you press it once more, which happens very often. It's a lot easier to just press select tool key for a good measure, than to actually look for which tool you have active. ESPECIALLY when you have the toolbar hidden. Having cycle behavior by default is a huge mistake.

To be very clear. Cycling of the tool modes is in no way a replacement for remembering the tool mode when activated through a hotkey. Cycling is also very inefficient way of getting directly to a tool mode you want. Can you possibly imagine having to press a key 3 times to enter the 4th mode of the tool every single time you switch back to that tool? That'd be a horrifying workflow.

Ludvik Koutny (rawalanche) added a comment.May 28 2019, 10:30 AM

All that is really needed is to have additional keymap operator that activates a toolbar tool instead of directly activating a tool mode. It is already doable by a mouse click. There is no reason it should not be doable using a hotkey press too.

Zsolt (Chromauron) added a subscriber: Zsolt (Chromauron).Sep 19 2020, 9:43 PM
In T63392#689488, @Ludvik Koutny (rawalanche) wrote:
In T63392#689299, @Campbell Barton (campbellbarton) wrote:

@Ludvik Koutny (rawalanche) if you use cycle it preserves the select state, it just cycles after you press it again.

Yes, but this is *extremely* inconvenient, as it messes up your select tool mode any time you press it once more, which happens very often. It's a lot easier to just press select tool key for a good measure, than to actually look for which tool you have active. ESPECIALLY when you have the toolbar hidden. Having cycle behavior by default is a huge mistake.

To be very clear. Cycling of the tool modes is in no way a replacement for remembering the tool mode when activated through a hotkey. Cycling is also very inefficient way of getting directly to a tool mode you want. Can you possibly imagine having to press a key 3 times to enter the 4th mode of the tool every single time you switch back to that tool? That'd be a horrifying workflow.

Toatlly Agree!

Zsolt (Chromauron) awarded a token.Sep 19 2020, 9:43 PM