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$ 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$ 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$ Commented Nov 5, 2021 at 17:40

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.