Number box select / deselect (?) key focus

seejayjames's icon

I know you can select a number box, either by clicking or sending it the select message (nice with the tab function, using the number box's right outlet). Is there a way to deselect a number box without clicking on the background? Like a general "keyfocus isn't specified" message to Max?

What's happening is I have a draggable panel that I want to snap to a grid while the "s" key is being held down. If the last object selected / edited is a number box (that is, if any number box currently has focus), the s key (and other keystsrokes for that matter) do get read, but the resulting behavior is strange -- like it's in some "no-man's land" between being interpreted as a keystroke or going into the number box (which it doesn't appear to). Rather tough to explain, but if there's a message to remove keyfocus, that's all I'm after.

--CJ

LoneMonad aka don malone's icon
Max Patch
Copy patch and select New From Clipboard in Max.

LoneMonad aka don malone's icon

press esc
or just wait 10"
for previous patch

seejayjames's icon

That's great -- very clever! This should prove helpful.

Don't want to be asked to save changes (creating the dummy number box changes the patch). So I attached the output of the delay to a "clean" command for thispatcher too.

--CJ

Max Patch
Copy patch and select New From Clipboard in Max.