Page MenuHomeFeedback Tracker

Shortcuts do not work for custom Context Menu entries
New, NormalPublic

Description

When creating custom context menu entries, it seems that their shortcuts do not work. The shortcuts are properly displayed in the editor's menu but nothing happens when executing them.

class Display3DEN
{
  class ContextMenu: ctrlMenu
  {
    class Items
    {
      class Edit
      {
        items[] +=
        {
          "Enh_PlacementTools"
        };
      };
      class Enh_PlacementTools
      {
        action = "findDisplay 313 createDisplay 'Enh_PlacementTools'";
        text = $STR_ENH_tools_placementTools;
        conditionShow = "selected";
        shortcuts[] = {INPUT_CTRL_OFFSET + DIK_L};
        opensNewWindow = 1;
      };
    };
  };
};

Details

Severity
Tweak
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Eden Editor
Additional Information

I have also tried to replace conditionShow with conditionEnabled which the engine driven entries use without success.

Additionally I have made sure that the shortcut is unique throughout Eden Editor.

Event Timeline

R3vo created this task.Jun 17 2019, 11:09 AM
R3vo updated the task description. (Show Details)Jun 17 2019, 11:12 AM
R3vo updated the task description. (Show Details)
R3vo updated the task description. (Show Details)
Lex added a subscriber: Lex.Jun 18 2019, 11:12 AM

@R3vo Is it in development? I do not have in the context menu "Edit" part of the menu block. I can only find these menus in Tools> Placement Tools.


I checked it yesterday on the DEV version. In the "Placement Tools" icons work and work hot keys. But when I did the first tests, the hot keys "Ctrl + .... Num" did not work for me, it worked as if by accident.

R3vo added a comment.Jun 18 2019, 12:43 PM

@Lex That's indeed in developement.

R3vo edited Additional Information. (Show Details)Jun 18 2019, 12:44 PM
R3vo removed a subscriber: R3vo.Jul 21 2021, 6:09 PM