Personally I don’t think this would be a good change. For accessibility reasons it is best to rely on keys being kept pressed as little as possible. Not everyone can do that.
If you want to implement this, then you need to store the key that launch the pie menu when it is created in UI_pie_menu_begin, then handle a matching key release event in ui_pie_handler.
I’ve already done it, finally I just had to modify only a one file.
In this file: blender/source/blender/editors/interface/interface_handlers.c
after the line 9368 ( right after this line that goes like this: if (event->type == block->pie_data.event && !is_click_style) { )
we add these lines of code:
switch (event->val) {
case KM_RELEASE:
menu->menuretval = UI_RETURN_CANCEL;
break;
}
I think there should be an option in the preferences with a checkbox that allows you to enable these 4 lines of code. I’m not going to go into which is the best way to implement it, but I think it would be good to comment this on the meeting on Wednesday because those 4 lines of code, are the limit that make the difference for users like me in that we want to use the pie menu, or dissable it in all parts of blender for that we are very annoyed by this behavior by default.
We cannot accept this. This change makes it so pie menus are instantly dismissed, even if you just tap to open a pie menu. This is no good. It must be possible to tap to open a pie menu normally, without having to hold a key.
Not even optionally?. Well then someone tell me how I can deactivate all the pie menus easily without having to go changing one by one all the hotkeys thank you.
my 2 cent
could not be written so that if you keep pressed for a minimum of thousandths of seconds activate the “tap pressed = disable on release” otherwise “on tap just open the pie menu without closing release”?
There’s no need for this option at all. You can already hold -> release to select items in the pie menus. You can also tap and then click. Both methods work, and should continue to work.
If the glitch is fixed so that you can release after holding, even if the cursor doesn’t move, then we are all set.
The main problem is when you press a shortcut by mistake such as ctrl + tab and did not expect to see a pie menu on your screen and by mistake you are forced to make an extra click or give esc to remove the pie menu.