Hello.
I’ve been experimenting with automating the reset to default value function of the number fields via an operator, since it’s not exposed as hotkey-able. I wanted to emulate Ableton Live’s functionality of a double-click to reset the valuebox. I got the operator working alright, but as soon as I click the number field, it switches to text input mode. I think there’s not much to do to get around this… so I figured this could be a good excuse to dive a little into the actual source code.
I’d like to get some pointers. The somewhat broken functionality I got was that I could click on the arrows and the operator would be called. Clicking in the textbox would automatically switch to text-focus (as expected, of course). I worked around it by just using mouse3.
Now, I figured this should be somewhere in /source/blender/interface, but where would the code that specifically controls how much time passes before the box turns into editable text be?
Anything you can throw at me, I’m all eyes.
Thanks