<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'>I second Eliot's proposal.<br><br>I rarely look at the keyboard and never notice the caps light until I have muttered a few obsceneties trying to ctrl-foo or alt-foo to no avail.<div id="message"></div><br id="br3"><div id="signature"></div><div id="content"><br> ---- On Sat, 12 Dec 2020 14:30:35 -0500 <b> eliot.miranda@gmail.com </b> wrote ----<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); padding-left: 6px; margin-left: 5px;"><div><div dir="ltr"><div dir="ltr"><div class="x_-1394787421gmail_default" style="font-size: large;"><br></div></div><br><div class="x_-1394787421gmail_quote"><div dir="ltr" class="x_-1394787421gmail_attr">On Fri, Dec 11, 2020 at 2:34 AM marcel.taeumel <<a href="mailto:Marcel.Taeumel@hpi.de" target="_blank">Marcel.Taeumel@hpi.de</a>> wrote:<br></div><blockquote class="x_-1394787421gmail_quote" style="margin: 0.0px 0.0px 0.0px 0.8ex;border-left-width: 1.0px;border-left-style: solid;border-left-color: rgb(204,204,204);padding-left: 1.0ex;">Hi there.<br>
<br>
This should work: <br>
<br>
| capsLockFilter |<br>
capsLockFilter := PluggableEventFilter on: [:keyboardEvent |<br>
        (keyboardEvent isKeystroke<br>
                and: [keyboardEvent keyCharacter isUppercase<br>
                and: [keyboardEvent shiftPressed not]])<br>
                        ifTrue: [self inform: 'CAPS LOCK ON'].<br>
        keyboardEvent].<br>
self currentHand addKeyboardCaptureFilter: capsLockFilter.<br>
<br>
Be sure to find a safe place for that capsLockFilter so that it won't be<br>
garbage collected. :-) Maybe that "inform:" is too noisy for you. I don't<br>
know.<br></blockquote><div><br></div><div class="x_-1394787421gmail_default">Would it not be possible to add something next to the time & full screen button in the menu bar top right?</div><div class="x_-1394787421gmail_default">Or maybe embolden the Squeak icon in the top left when shift is down?</div><div class="x_-1394787421gmail_default"><br></div><div class="x_-1394787421gmail_default">Some keyboards have a nice light when shift lock is on (Mac).  I find it very annoying to use keyboards that don't indicate shift lock.  But I don't suffer badly enough to have Timothy's issue.</div><div class="x_-1394787421gmail_default"><br></div><blockquote class="x_-1394787421gmail_quote" style="margin: 0.0px 0.0px 0.0px 0.8ex;border-left-width: 1.0px;border-left-style: solid;border-left-color: rgb(204,204,204);padding-left: 1.0ex;">
<br>
Best,<br>
Marcel<br>
<br>
<br>
Squeak - Dev mailing list wrote<br>
> Hi folks.<br>
> <br>
> <br>
> <br>
> Ignore as appropriate.<br>
> <br>
> <br>
> <br>
> Fat-finger me hits caps-lock by accident quite a bit and copy-n-paste does<br>
> not work in morphic when that happens.<br>
> <br>
> <br>
> <br>
> A not-so-subtle indicator that "caps lock is on" would be helpful.<br>
> <br>
> <br>
> <br>
> cheers and thanks.<br>
<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://forum.world.st/Squeak-Dev-f45488.html" target="_blank">http://forum.world.st/Squeak-Dev-f45488.html</a><br>
<br>
</blockquote></div><br><div><br></div>-- <br><div dir="ltr" class="x_-1394787421gmail_signature"><div dir="ltr"><div><span style="font-size: small;border-collapse: separate;"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div></div>
<br></div></blockquote></div></div><br></body></html>