0
$\begingroup$

I'm making a StringProperty, and I want to make specific key(e.g. Enter-Key, or others) to do some operator. For example, if I type Enter-Key, the strings are changed by upper words.

enter image description here

I found there is 'options=' in StringProperty, and I think using it will be key, but still not find. Many Thanks!

prop = StringProperty(name="Test", options={'TEXTEDIT_UPDATE'})
$\endgroup$
3
  • $\begingroup$ English might be a secondary language for you? Do you mean that you want keys like Enter to trigger a script like "ToUpper( input_text )"? Perhaps here: blender.stackexchange.com/questions/143975/… $\endgroup$
    – james_t
    Commented Nov 5, 2021 at 15:42
  • $\begingroup$ Exactly, I'm not good at English :( Yes. But the link is not relevant to my question.. $\endgroup$
    – Youdi
    Commented Nov 5, 2021 at 16:31
  • $\begingroup$ I don't think the options parameter is meant for that. You'll have to define custom operators, and create custom keymap entries for them $\endgroup$
    – Gorgious
    Commented Nov 5, 2021 at 17:40

0

You must log in to answer this question.

Browse other questions tagged .