Forums > MaxMSP

freeing keyboard focus after operating a number box


dhk
August 1, 2006 | 12:09 am

I would like to have access to the entire qwerty keyboard at the same time as using the mouse on number boxes. After touching a number box, the number keys are occupied by the number box, and I (and the users of the app I’m making) have to remember to click outside the number box, which in itself can be frustrating. Unfortunately, not only do we have to click outside the number box, we have to click on "nothing". There is no "nothing" on the surface of my app (only background pics and other stuff), so once I’ve touched a number box, the number keys are occupied *forever*. This is not frustrating, it’s something worse…

Is there any way around this problem? I’d really rather not have keyboard access to number boxes at all. And to the Max developers: I see no reason why number boxes should keep keyboard focus whatsoever if you click anywhere outside them. Do you?

I’ve tried using blank pictctrl’s over the number boxes – which works fine for integers, but float number boxes seem impossible to emulate that way.

Thanks in advance for any suggested solutions.

Dag Henning


August 1, 2006 | 1:06 am



dhk
August 1, 2006 | 1:39 am

Thanks a lot, smart solution, works very well.


August 3, 2006 | 8:37 pm


August 4, 2006 | 11:40 am

i did a javascript-version of it, saving the hassle of connecting a
thispatcher ;-)
http://lloopp.klingt.org/externals/deselect.zip
btw, its also usefull for cellblocks and text-fields, etc

-klaus

On Aug 3, 2006, at 10:37 PM, cheese wrote:

> That script is awesome! Is anyone smart enough to build an actual
> object that works like that? Or I suppose a [bpatcher] would be
> simple enough!
>
> cheese
>


August 4, 2006 | 5:33 pm

very nice, I needed something like this and didn’t even realize it =)


August 4, 2006 | 9:01 pm

> very nice, I needed something like this and didn’t even realize it =)
>
>
Same here! I got used to a) leaving a nice blank space to click on and b)
forgetting to click and messing stuff up anyway.

cheese


Viewing 7 posts - 1 through 7 (of 7 total)