[squeak-dev] for the morphic team...is a "caps locks is on" indicator doable?

Tobias Pape Das.Linux at gmx.de
Sat Dec 12 20:14:20 UTC 2020



> On 12. Dec 2020, at 20:30, Eliot Miranda <eliot.miranda at gmail.com> wrote:
> 
> 
> 
> On Fri, Dec 11, 2020 at 2:34 AM marcel.taeumel <Marcel.Taeumel at hpi.de> wrote:
> Hi there.
> 
> This should work: 
> 
> | capsLockFilter |
> capsLockFilter := PluggableEventFilter on: [:keyboardEvent |
>         (keyboardEvent isKeystroke
>                 and: [keyboardEvent keyCharacter isUppercase
>                 and: [keyboardEvent shiftPressed not]])
>                         ifTrue: [self inform: 'CAPS LOCK ON'].
>         keyboardEvent].
> self currentHand addKeyboardCaptureFilter: capsLockFilter.
> 
> Be sure to find a safe place for that capsLockFilter so that it won't be
> garbage collected. :-) Maybe that "inform:" is too noisy for you. I don't
> know.
> 
> Would it not be possible to add something next to the time & full screen button in the menu bar top right?
> Or maybe embolden the Squeak icon in the top left when shift is down?
> 
> 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.
> 

FWIW, I always map my caps lock to control. much better imho :D
(easy to do on a mac, too)
-t

> 
> Best,
> Marcel
> 
> 
> Squeak - Dev mailing list wrote
> > Hi folks.
> > 
> > 
> > 
> > Ignore as appropriate.
> > 
> > 
> > 
> > Fat-finger me hits caps-lock by accident quite a bit and copy-n-paste does
> > not work in morphic when that happens.
> > 
> > 
> > 
> > A not-so-subtle indicator that "caps lock is on" would be helpful.
> > 
> > 
> > 
> > cheers and thanks.
> 
> 
> 
> 
> 
> --
> Sent from: http://forum.world.st/Squeak-Dev-f45488.html





More information about the Squeak-dev mailing list