Forums > MaxMSP

Tab key and number boxes

Dec 04 2012 | 12:14 pm

Hello gents, I’m trying to assign some key shortcuts to my application via the [key] object. Specifically, I’m having an issue with the tab key. It works fine, until clicking on a number box. [key] then ignores the tab key until the user has clicked away from the box. Anyone know of a good workaround?

Dec 04 2012 | 6:37 pm

You can try [keyup], but [numbox] specifically overrides [key]’s handling of the tab key. It’s sort of a pain, but it’s designed that way and I daresay there are a gazillion patches out there that rely on this. Well, half a gazillion.

I wrote a custom replacement for [key] many years ago, but due to changes to both Mac OS and to Max, the approaches (yes, plural) I’ve taken don’t work any more. Finding a new way to out-key [key] is on my to-do list, but it’s not at the top.

Feb 20 2013 | 1:40 pm

number box -> [t b] -> (front) -> [thispatcher]

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

Forums > MaxMSP