<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:large"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 11, 2020 at 2:34 AM marcel.taeumel <<a href="mailto:Marcel.Taeumel@hpi.de">Marcel.Taeumel@hpi.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">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="gmail_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="gmail_default">Or maybe embolden the Squeak icon in the top left when shift is down?</div><div class="gmail_default"><br></div><div class="gmail_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="gmail_default"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<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" rel="noreferrer" target="_blank">http://forum.world.st/Squeak-Dev-f45488.html</a><br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_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>