Page 1 of 1

Locking Caps Lock Key

Posted: 20 May 2016, 16:06
by ArtoriasEdgeworth
How would II program a locking Caps key onto a Teensy? Anyone have any ideas/links to other conversations that have answers to this??

Posted: 20 May 2016, 16:57
by Dra
A workaround would be just programming it to act as shift key, wouldn't it?

Posted: 20 May 2016, 17:05
by Muirium
Problem needs more definition. Vague problems invite vague snarky answers!

Posted: 20 May 2016, 17:33
by Spikebolt
Dra wrote: A workaround would be just programming it to act as shift key, wouldn't it?
This sounds pretty clever, though it may have undesired results when you type numbers with the caps lock on.

Posted: 20 May 2016, 22:18
by Ray
As Mu pointed out, we don't know what is desired.

If you want standard behaviour with a keyboard that has a locking key for capslock, TMK supports that.

Posted: 20 May 2016, 22:30
by Findecanor
There is a key code in the USB HID standard for a locking Caps Lock keys but I don't think that there is any support for it in any OS.
What the "TMK Keyboard" firmware does is a workaround: comparing the key state with the state of the Caps Lock LED.

TMK Keyboard on Github, Offical thread on Geekhack.

Posted: 21 May 2016, 11:51
by Chyros
I THINK the way it's done in my ADB adapter is it immediately sends the break code after you push it, a bit like the pause key.

Posted: 23 May 2016, 15:24
by ArtoriasEdgeworth
I'm looking for a caps lock key that locks down when pressed, and only affects the letter keys.
Terribly sorry about the poor form and lack of specificity on the request, I'll be the first to admit, I don't frequent forums all that often, and asking for help isn't my forte.

Posted: 23 May 2016, 15:27
by Muirium
Which keyboard? Or is that the answer you're looking for?

Posted: 23 May 2016, 15:45
by ArtoriasEdgeworth
I am replacing the keyswitches on my MagicForce 68 and I'm working on finding an MX Lock to install on the board.

Posted: 23 May 2016, 15:46
by giokkk
Hi Artorias, on my Model F XT I'm using the Scroll Lock key as Caps Lock with a Soarer's Converter, locks down when pressed
and only affects the letter keys.

Posted: 23 May 2016, 15:51
by Muirium
Oh, I get it. He's talking about a custom keyboard, or at least putting in his own latching switch. (Latching is the term for a key that really does physically stay down until pressed a second time. Like the mechanism in many ballpoint pens.)

vendors-f52/cherry-mx-lock-keys-t13794.html

The XT's a superb feeling board, but no buckling spring can latch. They return home on every key press.

Anyway: good news. MX Locks (if you can find one) are compatible with TMK, I'm sure.

Posted: 23 May 2016, 15:53
by ArtoriasEdgeworth
Hah, finding one is more difficult than I had expected...
I'm more than glad to see there's compatibility! Thanks, I'd like to apologize for my lack of knowledge on these matters.

Posted: 23 May 2016, 15:54
by ArtoriasEdgeworth
Also, what in the world is 'TMK?'

Posted: 23 May 2016, 15:57
by Muirium
Hasu's keyboard firmware. It can drive a keyboard internally as its controller, or convert it from many old things to USB. (I don't recall what the letters TMK actually stand for. Initialisms drive me nuts.) More about it here:

workshop-f7/how-to-build-your-very-own- ... t7177.html

Too technical for my liking. But lots of people love it.

Posted: 23 May 2016, 16:02
by ArtoriasEdgeworth
Thank you, so much. You've been very helpful, sirs/madams!

Posted: 23 May 2016, 16:05
by Muirium
That's DT!