Not possible. There is only Python to solve this:
bl_info = {
"name": "Cursor to origin from edit mode",
"author": "Martynas Žiemys",
"version": (1, 0),
"blender": (3, 5, 1),
"location": "3D Viewport, Alt+Shift+Ctrl+E",
"description": "Cursor to origin from edit mode",
"category": "Modelling",
}
import bpy
class OBJECT_OT_cursor_origin_edit_mode(bpy.types.Operator):
"""Cursor to origin from edit mode"""
bl_idname = "object.cursor_to_origin_edit_mode"
bl_label = "Cursor to origin from edit mode"
bl_options = {'REGISTER', 'UNDO'}
@classmethod
def poll(cls, context):
return context.object is not None
def execute(self, context):
o = context.object
o.update_from_editmode()
context.scene.cursor.location = o.location
context.scene.tool_settings.transform_pivot_point = 'CURSOR'
return {'FINISHED'}
addon_keymaps = []
def register():
bpy.utils.register_class(OBJECT_OT_cursor_origin_edit_mode)
kcfg = bpy.context.window_manager.keyconfigs.addon
if kcfg:
km = kcfg.keymaps.new(name='3D View Generic', space_type='VIEW_3D')
kmi = km.keymap_items.new("object.cursor_to_origin_edit_mode", 'E', 'PRESS', any=False, alt=True, ctrl=True,shift=True)
addon_keymaps.append((km, kmi.idname))
def unregister():
for km, kmi_idname in addon_keymaps:
for kmi in km.keymap_items:
if kmi.idname == kmi_idname:
km.keymap_items.remove(kmi)
addon_keymaps.clear()
bpy.utils.unregister_class(OBJECT_OT_cursor_origin_edit_mode)
if __name__ == "__main__":
register()
This will install as add-on if saved with .py extension from Blender's Text Editor. You can change the code to set different shortcut than Ctrl + Shift + Alt + E
It does pretty much exactly what you do manually.