Labels - how to get text when enter button pressed?
-
I've tried various method but haven't found one that works.
The label's keypress call back is triggered after the control callback, and the control callback is triggered whenever the label loses focus. How can I get the current text of the label when the user hits enter?
One thing I tried was to store the text in a variable, adding it one character at a time as they are entered in the keypress callback. But this doesn't work for backspace/delete.
HiseSnippet 838.3ocsUssaSDCD0aZ2JR3h.I9.L4oTIHJgKEjPUTZZCJBZIh.HdC43cRiU8Zux1aoQz9OyePY75MMIPT.hD4gnctb7blwyLtuQyAqUaHQU+3jLfDcq3ASTtwcFyDJRuCHQ2I9Hl0AFZP09SxXVKjPhh13MdEQU2jT76GuZeljo3vLUDxm0BN7NQpvMSa+8dqPJ6xRfOJRmy6mtWOtV0QK04He1HtEIiwOkcBbLy6VkXRzVGlHbZy.GyAVzm80ISFLV+MUv+OKrhgRvKzlL.OnfZRmwBYR+o4pkPh1r+rLeiPle+3iDIhq0OqBb2BCzYHluFDUYUTp8+.khliRaFnz8hGvMhL2LKd9by3dJ7BYDCK0ySkfujJOnRbGM5gx0LkcJz0fBWinwNsZ8PJ921urVMrbaczyXF56XCAYa5tzoHOAbczoYZEJzndvbcOlvmMsf6svj9FjVcXR4P7lpwnbE2IzpFvYHpsq88ZUEinAolmBS5nS.5t6Ra+D5EWPCpS.aAsQXdS0MfK2npucspUQpX0RnYlQfbvMVX8rpQcGbtq91HWtzymZBkTn.5zfS0p.E8YhQKavmlFODyTYNTvqEO65iz7bKUpsNeNdIdrqtN3S+xy+5r+WhKdNyQoi0N38pFEwt1k0n+poQiVpsxyRBlkZ1O+XVEvFp7zgfY9L26H1fsXW6V+ccs7PQYNG0pdJg68YPobWsLw2M5+926wIkUU7qO06.li4a6K0g9kAFmvSmnCfyv8FggfpwG.1Sc5rBeKuJPJ6Jrd6xQjhZOQfg9Fwg6Ax4jn3nLLVS7e3C5vSltco5Vn3U9sN9tohkKjee9Cm70I4Rlaw0A98dkFvp8Byf94LkU3lL+dw+gcDsV4Nh+VJdu39BGe7x4XkkvQ7d3+AGK2rd63CG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mmJT2ztHRAOgq.JPEXpwt.3AEK.bjFQBy49zBFjXgb8Eujec7wbCuLPPLg7jJxLRrD7NVbErX1sYwmdrH+RXTB1wto4.6Zco89Eo01lsY8tTWKm7tpD9GGsFHFO.3jYKJWg6eG33GP03kL6FbRsDP+LpqpT7OoUovEt6Q+MoYIy1WgWU9jMlvtZczpXtY6E33qVEJf1+VaMwMipboYc8W09eaq9mKDeHchzDtb2XrwNvHzj+Rfwh2BuOcz74vp7J.d.8je+KyCejeQuxHUKNkaxjPumd1pjovcoPAjckRDiiedMvAE24d3YjAlJTQ1Ce.9UnrOd1qPY+RkjDdXl9sgtwK7016Zk.XRY+PCe3KdfyrMSUTZut8HIvC+uMLDK+uClc2sOe+d3yi2Cedxd3yOrG97z8vmmsG97i2pO32b8xUFchab.DLYjc6lm2HEGtYYuER9O.m+7.c.
-
@Matt_SF That's an interestingly over-engineered solution. But it seems to work!
-
This post is deleted!