<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
                                        Hi all!<div><br></div><div>> <span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Would it not be possible to add something next to the time & full screen button in the menu bar top right?</span></div><div class="gmail_default" style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">> Or maybe embolden the Squeak icon in the top left when shift is down?</div><div class="gmail_default" style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></div><div class="gmail_default" style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">At the moment, we have no access to the state of caps lock from within the image. My solution thus exploits input-event processing and #shiftPressed. Well, you could map the effect to anything on the screen. However, even if we get a keyDown on caps lock, we don't know its state. Only after the next regular keyStroke event. So, any constant indication of the caps-lock state in the image could be misleading.</div><div class="gmail_default" style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></div><div class="gmail_default" style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Best,</div><div class="gmail_default" style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Marcel</div><div class="mb_sig"></div>
                                        <blockquote class="history_container" type="cite" style="border-left-style: solid;border-width: 1px;margin-top: 20px;margin-left: 0px;padding-left: 10px;min-width: 500px">
                        <p style="color: #AAAAAA; margin-top: 10px;">Am 13.12.2020 14:40:31 schrieb gettimothy via Squeak-dev <squeak-dev@lists.squeakfoundation.org>:</p><div style="font-family:Arial,Helvetica,sans-serif"><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;min-width: 500px"><div><div dir="ltr"><div dir="ltr"><div class="x_-1394787421gmail_default" style="font-size: 14pt"><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;min-width: 500px">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;min-width: 500px">
<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: 10pt;border-collapse: separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div></div>
<br></div></blockquote></div></div><br></div></blockquote></div>