EditorTool add hotkey?

[MenuItem(“EditorTools/Hotkeys/CustomTool #W”)]
[EditorTool(“CustomTool”, typeof(CustomModule))]
public class CustomTool : EditorTool
{ … }

Support to hotkey in EditorTool class?

this scripts is working

 public class CustomTool : EditorTool {
 // Shift + W
[MenuItem("Edit/EditorTool/CustomTool #W", validate = false)]
        public static void ActiveTool()
        {
            if (Selection.transforms.Length != 1) return;
            if (Selection.transforms[0].GetComponent<CustomModule>() is var comp)
                EditorTools.SetActiveTool(typeof(CustomModule));
        }
   // ...
 }