Max 6 – [key] reports 127 instead of 8 for 'delete' key

Dec 17, 2011 at 3:28pm

Max 6 – [key] reports 127 instead of 8 for 'delete' key

On Max 6, [key] reports 127 instead of 8 for ‘delete’ key.
Is this a bug?

#60717
Dec 17, 2011 at 3:39pm

Hi,
Refering to the ascii table at http://www.asciitable.com/ 127 would be the good choice.
Philippe Ollivier

#218566
Dec 17, 2011 at 4:38pm

Then I guess the question is why does Max 5 use 8 instead?

#218567
Dec 18, 2011 at 5:36pm

Because Max 4 used it.

In general, for n in [2..5], it can be stated that “Max n used BS for backspace because Max n-1 used it.”

The reason why Max originally used BS (ASCII 8) for backspace is because that is what the OS used to tell it to say. This got changed sometime in the transition from Classic Mac OS to Max OS X (and was probably always different on Windows, which wasn’t supported until midway through the Max 4 cycle).

Whether ASCII BS(8) or DEL(127) is more “correct” is a matter for debate. My keyboard has three different keys that delete (Backspace aka Delete on the main Sholes keyboard; Forward Delete in the PgUp/PgDn block; Clear on the numeric keypad). It would be nice to get different values from [key] for these three keys, as each has a different function. So I would vote for ‘bug’, but there may be different viewpoints to consider.

Granted: in a pinch you can distinguish between the keys based on the Scan code (keycode, 2nd outlet, or the idiosyncratic 4th outlet).

#218568

You must be logged in to reply to this topic.