shiftLock happened.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
on rawKeyDown KD
put KD
end rawKeyDown
Code: Select all
on rawKeyDown KD
put the keysDown into fld "KEYZDOWN"
end rawKeyDown
Code: Select all
on rawKeyDown KD
if KD = 65509 then
put "pressed the capslock" into fld "OOT"
else
put empty into fld "OOT"
end if
end rawKeyDown
Code: Select all
if item 2 of the keysDown is 65509 then
--Jump and shout
end if
Code: Select all
put the keysDown
None of the five "control-style" keys (option, control, shift, command, capsLock) respond to the "rawkeyDown" message. I am not sure I can think of any case where such a response would be useful, since all of those keys are only pertinent in conjunction with another key.which seems odd as the processor has to register that the capslock key is being depressed
And makes it less hackable by those who want to do other things.So, as usual, Macintosh reduces clutter.
Aha: next year, at about this time, I shall be presenting online rawKeyDown Awareness ClassesrawKeyDown awareness
The usual reason is that the OS doesn't report it, so LC can't see it either.I wonder if there is something deep down that makes such a thing difficult.
Indeed.that the OS doesn't report it
So, macOS does pick up raw key signals when keys are depressed, it has been programmed NOTthe macOS does not forward certain special key signals