Re: detecting capslock key down
Posted: Sun Aug 29, 2021 7:59 pm
Questions and answers about the LiveCode platform.
https://forums.livecode.com/
As far as old OSX /macOS (reading up on the latest it seems iOS/mac Catalyst might be different) I believe that is correct (probably more correct to say it has *NOT been programmed to) as a default fro certain special keys. I'm trying to find where I read that on Apple's dev site in the documentation for Event Handling, NSEvent or NSResponder maybe. That was true by default for certain special keys like the media keys Play/Pause/Stop/etc. Eject and the Power Button (which brings up the Finder shutdown dialog). That does not mean that a driver level thing like ControllerMate that comes with a Kernel Extension, or maybe LCB HIDAPI library (shameless plug) that can poll, can't still respond.richmond62 wrote: Sun Aug 29, 2021 7:26 pmSo, macOS does pick up raw key signals when keys are depressed, it has been programmed NOTthe macOS does not forward certain special key signals
to pass ones on, unlike with Windows and Linux.
Ummm, that looks like JavaScript which is interpreted inside of a runloop of something else (a WebBrowser typically), which could be doing it's own polling of the capsLock state. As you can see here in the link from that page, macOS' Safari browser is shown as compatible and that JS seems to require some other key/mouse event to trigger it:richmond62 wrote: Sun Aug 29, 2021 7:59 pm Um:
https://www.w3schools.com/howto/howto_j ... pslock.asp
-
SShot 2021-08-29 at 21.59.27.png