Shortcut für Knipse

Aaaa yes. The Default notch Shift + N sets all node point properties, where the Remove Notch simply sets isNotch property to false.

         case Qt::Key_N:
              notchType    = stringToNotchType(qApp->Settings()->getDefaultNotchType());
              notchSubType = NotchSubType::Straightforward;
              notchLength  = qApp->Settings()->getDefaultNotchLength();
              notchWidth   = qApp->Settings()->getDefaultNotchWidth();
              notchCount   = 1;
              showCutline  = qApp->Settings()->showCutlineNotch();
              showSeamline = qApp->Settings()->showSeamlineNotch();
              break;

         case Qt::Key_R:
              isNotch      = false;

If we try to just toggle with Shift + N. then you have to track the state

Ok… user input time.

I’m struggling with trying to implement the key shortcuts for the node context menu. This is directly selecting a point on a pattern piece and using key shortcuts to trigger the notch menu items:

For reasons I’m not yet sure why… the node tool is not getting the key events, but the parent pattern piece is. So for ex: Instead of Shift + S setting the node to a slit notch it toggles the Seam Allowance visibilty.

Question is should I leave as it currently is with no shortcuts, or keep trying to get the shortcuts to work?

I’m personally most interested in setting/unsetting notches without menu-diving. While notch customization without menu-diving would be nice, I don’t see myself using it often enough to remember shortcuts anyway.

:unicorn:

You already can.

It already exists…

But doesn’t answer my question… given you can aready set notches in the Main Path list when creating or editing a piece or the Insert Nodes tool list via the context menus - for consistency should I keep pursuing the shortcuts in the Node point context menu?

My personal thoughts on this are…

The menu option would be perfect if it didn’t keep closing after clicking on an option but allow one to select everything one wants to in that menu before closing, since one doesn’t always want to use the default notch specified in the preferences.

So… What if there is only 1 short-cut for notches that brings up a small menu that allows one to choose the type of notch and the quantity (even the length, if you wish) and then… a Default notch that will cancel everything previously selected and revert the settings back to the original Default and an Apply button that will close the menu?

Normal Menus only give you one selection.

Thing is all these ideas are beyond what I’m doing… and doesn’t answer my question. I’m not resdesigning the notch selection… I’m just fixing the shortcut behavior in the context menus - and want to know if I should apply the same shortcuts to the Node context menu. It’s a Yes or No answer.

I’m inclined to not add the shortcits and leave it at the consolidation like the other 2 context menus.

  1. I tried to used Shit+S or T or … with a node selected, and I couldn’t set or change notch on the node.

  2. For me this would we very useful addition, I am mostly adding notches directly on the pattern piece and not using properties dialogue.

Because wiith the current vetrsion you have to “Make Default Notch” first.

I’m eliminiating that menu item and just adding “Default” as an item in Edit Notch… where then you can use Shift + N to get the default notch type or Shift + S to get the slit type.

You can still do that through the context menu, and I have consolidated it like the main Path list context menu.

I’m having a hard time getting the key shortcuts to work. The nodes are children of the pattern piece and the piece is stealing the keyboard input. If you feel it useful to be able to select a point and then use a shortcut then it’s worth it to keep working to get the shortcuts to work. If for any other resson to be consistemt across the context menus.

BTW…the Main Path context menu does have the advantage of multi-selection. Currently we have no mechanism to select multiple modes and apply a menu item.

After jumping through some hoops and a deep dive into eventFilter()'s and keyPressEvents()'s … the shortcuts now also work when you select a node. :slightly_smiling_face:

I had to make one concession to avoid a conflict with the Draft Mode shortcut Shift + D and the Diamond type notch. I had to use Alt + Shift + D.