1
$\begingroup$

I am trying to make a blender addon using this template (last example on page): https://docs.blender.org/manual/en/latest/advanced/scripting/addon_tutorial.html

I have successfully got my addon to work with a shortcut (I override the plus and minus keys), but when flicking to edit mode, the shortcut no longer works.

The example only shows how to make a shortcut for object mode.

How can I make a shortcut for edit mode?

$\endgroup$
1
$\begingroup$

i found you can use the keymap word "Screen Editing" instead of "Object Mode"

object_mode_keys = wm.keyconfigs.addon.keymaps.new(name='Screen Editing', space_type='EMPTY')
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.