Panel keyPressCallback and focus
-
@ustk it's definitely doable (probably a one line fix at the right location), but finding it is the hard thing...
-
@ustk said in Panel keyPressCallback and focus:
I tried several fixes with no luck. It seems that the focus is lost as it should but when clicking anywhere in the interface editor, the first component automatically gets it back.
This works okey
It has 5 Panels just for testing
At init, all Panels will be set to the same KPC, PR & MCBfor (p in Panels) { p.setPaintRoutine(PR); p.setMouseCallback(MCB); p.setKeyPressCallback(KPC); }
then in MCB
if (event.clicked) { for (p in Panels) p.setKeyPressCallback(""); }
and in
if (event.clicked && event.shiftDown) this.setKeyPressCallback(KPC);
HiseSnippet 1507.3ocyX80aaaCDWJIpsxaEaEXe.37CExXIN1IY8OIXXwwwoKHModwoEqurBFIZK1HSpQRkTih.rG19Jrm2CaeE1yCaeg12fsihx1xNxooAsC0.Iv7t62we7tijGcaA2mHkbgks6QChIV1erSmALUXyPLkYs61V1kbNgLHV.VYs0fXrTRBrrsm+QZ81tKXk94e95svQXlOYrHKqmwo9jGS6SUik1dy8nQQ6fCHGQ6my501bWeNqIOhm.bYdmZVwX+Sv8HGf0lMmik8MZEPUbQGEVQjV1KrEOXPmP9YLi8OiJoGGQzCpa0AbjQ7N7n.Mi0RsZFRiBZObMKs.uzdbDXdSD3yb1mFPGIebj3SSUfFiHe7vdtIo27SPu54oWsbzq.JYmiRKXnzcb53KnwpwZz74ib1koHhtXHrmmJFasl6utoSSNXASUsO9DxNBXvHDd2qVsEQv+prQoRPnWpPmhEn1XFIRh9JzPj8HpFQQM48i4LXrzqbpIk0vxv09PvdutILeEky75UozqK41qZWHQCP8LIUY0ynpvFQwg3QR5IHCVDUq5JU.u4pwHIJixwnBoJhVcupAB7YMhn8XjfiHuR4oBoRM+dFNJg3UYQzPAOl6ii1hmvBjd0.4k8AlKHAkm8zf+gDberfxtr4J.qvUUvvq1TU57bAo8at0DQIxofgoQJZWjYTU+Hp+IjfJkbAwtc4BjWLhxxRJfXW2XM22iLnsdCYSbTzwv1Duxoqry0KtK3MzcuKxHPFR6p1F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.lO+Ff4A2.LqeCv7vqDi9mqoQhh2Oc6.HncKykt11sXXnxxTEZ8ODo3tTM
-
@ulrik that's a cool hack, however I am not sure it is safe to kill the CB from within itself...
-
@ustk Yeah it feels a bit risky, I wish it could work as it's supposed to
I could need it in a project -
@ulrik I'm waiting for a proper implementation for my current project so I won't risk a bug, the release is soon...
-
@ustk I think I've found the spot where to put that line. On the other hand, it's bad coding week, so nobody knows what I'm breaking with this :)
https://github.com/christophhart/HISE/commit/cbdab1d60823f213db4f87a81ff19edd8b927e79
-
@christoph-hart Yes, but it can only get better now, right? ;)
-
@christoph-hart said in Panel keyPressCallback and focus:
@ustk I think I've found the spot where to put that line. On the other hand, it's bad coding week, so nobody knows what I'm breaking with this :)
https://github.com/christophhart/HISE/commit/cbdab1d60823f213db4f87a81ff19edd8b927e79
perhaps more testing before commits?
-
@christoph-hart trying to build...
-
@christoph-hart So that seems to work. But can't we lose focus when clicking anywhere outside of the panel?
If not, then it's not much of a big deal since hitting "enter" works -
@christoph-hart this was what I needed, thank you
-
@ulrik Then let's hope it doesn't break Lindon's computer :)
-
-
@ulrik said in Panel keyPressCallback and focus:
@christoph-hart this was what I needed, thank you
I think I was a little bit to entusiastic before
It works great as long as the panels not are childs of another panel.
As usually organise my components in containers (panels) and to get this focus thing to work, I have to have all panels at the same level.
Is there a way to get pass this limitation?
HiseSnippet 2036.3oc0Y0uaaajDmz1LWn50qs.2eb2+sU3PAErrrjSaZfUSpjkkKLbrifkSPCJtqXM4Jo0ljKK4J6Hb0.2iVdQNf6Q3dCta1OH4JYYGWm1hVAaCsyNe7a1Y1Y2Y8fTlOIKikZY6dxrDhk8ezY3rX9jdSvzXq820xthy4jYIo.WV6LKAmkQBrrsW8aDya6tlk7y+8q2AGhi8IkjrrdEi5SdNMhxKoNnyAzvv8vAjSnQFb+4c12mE2iExlBXYUmlVIX+ywiIGgErshik8C5GP4rzgbLmjYYu1NrfYCmvtLVw+qnYzSCIhAsrFBJRQdOVXf.wBpV8lPCCFj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H9INCDOQwxw3JKAivwT+RfQ86H+gN8GMh3yKA3ZN68s+x7nwVpFaGeHFtQKDecNZZzP3HYeh3EeDsbBzrWQbcD03lhwhUfgP27xA+O3idxVhw15IakOoUD1Ok889p6yHdo5GJo.XJV9H8tNGJFiJtEjiSyFMshnAzu22W39a.Wtb4xr08PlGcOj4yuGx7E2CYd78Plu7dHyStUYD++J5NkyhTaG.BC5KuPosc+XQ4eYVn0+G7q0a7E
-
@ulrik Ok this works
reg allowFocus = true;
All containers need to have "allowCallbacks" enabled, at least with "Clicks only"
and have this mousecallback:Container.setMouseCallback(function(event) { if (event.clicked) allowFocus = false; if (event.mouseUp) allowFocus = true; });
then use allowFocus as a condition inside the KeyPressCallback
HiseSnippet 2174.3oc0Y0uaabbD+njO2bL0sI.8OZ+uMDEAjPTzjxI1FR0NjhhJPPVRDhxFwHnMc0cKIWoi2d8tkRlnQ.8QyOJ8QnuAsyr6d2sjhRVQ4CjRHHv8iYleym6NK6mH7YoohDmRdmLKl4T525NXVjbb2wTdjyd63Tpr64rYwIvtb1dVLMMkE3TpzpeMtdIuG3n97e9psogzHeVwTNNuQv8YuhOgKKlse684gg6RCXmvmXs6un8d9hnthPwT.Kq51zIl5eNcD6PJtsUbcJ8vdAboHYfjJYoNkdv1hfYCFKtLRu+2vS4mFxvAsbF.LRO8thv.Dw3rNcGyCC5moyoN.W5WXAVUaA9CtGvC34yWXI9D0BjBJrsGkVYd3s5bvqkM7ZZAuk.oRVP5AZH8otC7S3wxhUP77wt6EIYICofY2FJ585rxe+QtcEvNhjMlPOmsaBLHmhpOsYy5D3e01pbYvzmJIWPSHHAf9xRHufjQ7HlrqXRrHBFTsR9Np.TVPXeZDKLcdp5DFlSXZ0JpsfTUNgMhPCCEWtqveJRjLYJCl+wO1Cng3mIhTRDiEPjBxX5ELREEMcg+eJDbjVgvhnfMMnNgJIgLJ.kK4xwjJcC4v5DQT3rJHSoQAZNHGySISDSSY9FtTNWeZjxjGfKkIfpCmF4K4hnprK.M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WNMabOn4I2CZ9h6AMe48flmdOn4Y2CZd9sRC9CJ0YpTLQmN.Szum55lkJ0S+aanp+++.zwKmxM
-
@ulrik I spook too soon, as I often do, sorry about that!
this is a better version, and simpler, no need to include panels in panels in panels, you only need to set a flag true or false.
HiseSnippet 2071.3oc0YstaabbEdWIstdYRZS.xOZ+2DhhfkPRTjxI1Fh0NjhhJPPVxDhxFwHnIXztyRNRK2Y6tCkLQi.5ileT5iPeCZOykc2gWjrrxEjRHIv4LmyY9NWmKpeJymjkwRsrcOcZBwx9icFLMlOp6HLM15f8rrq3bAYZRJvk0tSSvYYj.Ka6U+Vw71tqYI+7e9lcwQ3XeRIIKqWyn9jWPGS4kT629PZTz93.xozwFb+UsOvmE2kEwl.XYUmFVIX+KvCIGiErshik8C5EP4rzAbLmjYYu1trfoCFwtJVw+qoYzyhHhAMsF.JRQdeVTf.wBpVcGQiB5mayYVfV5W5AVU4A9bminAzB5kdhOUNApTBS+g8JyBuUmAdMMgWCC3sDHYa.o0TP5ybF3mRS3kyHvyG4bPLmjFhA2tITT7ZsR1G6zkAbDyqOFeAY+TXPgDdOtQiMPvep0pREv0mwQWhSQ8wwjnLzyP4RNjv6DE0kMNgECiy7pJYopPrTxPDNJhc09L+IBgBwQYDXhJaskVm8OAH6ENI1mSYwdCqU4eVwcX8PHI.TqmJfmU+JJeTmnjQ3BJCSIS2.0n910fUxshK7CMD4wGQypGf435bxa40iHwC4iPOG0nVEWPyfpyHbkNJTE9eLAOFmRiIBUArDjhupSDcXLI3TPKyozMPxwfg+BlONZW1j3fLuF01.U0G7.oj.gw6dcEWvSQt4k8pQT9sthvJ7ZbzDhWs69RNuWXDNS57qUrLmHDlDbBwmiiGFQ7VlpaBpd6MPMAsdsHRpiVG0c2YBWjKgUWFxDqpbTc+Hp+Ej.zO8SHEAXQGp89Kvk.VtkncLaRFYOnl.Vk4bAsjgXCMnUqTuthTyKELlK3bpacSo9NXHZSCz8Fo1U3HKeEkpyXB+Qf6hDnPx0FNasdX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4MK8cTf6L8.Mp.V4xaL8I42XRzNzhB2K5gNxu+0VR.WdySu1V2Yge77B29CP3mNuvO4tH7ePI7OmEt4OGgezRP8qNXOX2MwUU0Q.HpjPR4TQ.2dOxkv89UWb00YOR1EbVBjHTbGRvntoE8ij2XE1xhjZ81h07e88smVBf+Z6qnA7QEDd2UsGQnCGY7JCz1vUuFm+ZBtO3cu6cMDzsWy.DUduYJFH.ahfmOGBrdyBH3MskmtJeOTvu7mbfK7hJIjguDp1E6zR.4rWYL9slhC05.JMfqoqw5CvLdrgY.9t+e0LdpgY7uS9cqY3NqY7B7YZy3OZRooYLwxZp4f2ax8yuczHNyok8e14fiGbvd8P86bbuWf59xiOsyAG26DKBzcFKa.aupIve3cB3aeSUksSZeG.tBa+EmW9pS+f.m66q6XIpZyLPEJ82fbi6DPKZEaH5O76Yj9HCjBwxeqQ5huA5m5bDKXRDlO6SxJdGZ8Dv4Sl4cPEu0YbFkO07cp+E6cZuqP7yb5KdnikiwUVBFgso90.i5W29Sb5EFR74k.bMm8+tecdJaK08NGdDFNQKDecNdx3AvVx9DwqGItmJPydEwI4TiaHFK7.CfaiKG7egO5IaJFaqmrY9jViw9orezWcdFw6m+PIE.Swx+0AtNGIFiJNEjiSi5MrFSCn+nuuv72DNb4xkY66gLO5dHyWcOj4quGx736gLO4dHySuUYD+WT5LgyFqJG.B86IOPoscuXQ6eYVn0+Ck2dO.C
-
@ulrik I see now, how I clutter this forum, and Gregs topic, sorry I'll remove this
-
@Christoph-Hart Effectively the problem persists, but this time when clicking on the parent (before the fix it was also when clicking anywhere on the interface)
Try this snippet, click on the parent (even right after init) and the first child alway gets the focus.HiseSnippet 1525.3ocsW8taaTDDeujbPcfhnR7.rjOclj3Zmz+ojVvINNnnz+XEmV.UUUVe2Zeay5cOc2dI0fhfOySAOJ8AfGBdD3C7cXlcOaeN0o.QzSJN2ty+9syL6Ly0IUGxyxzoDuJGOJgS79X+tiTl3VwLghbvdDuOw+QrLCOk51Z2QIrrLdDwy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