CapsLockNoDelay icon indicating copy to clipboard operation
CapsLockNoDelay copied to clipboard

Keyboard layout switching

Open trsrm opened this issue 4 years ago • 23 comments

I'm using CapsLock for switching keyboard layout.

With CapsLockNoDelay it switches the layout AND switches the capitalization both.

But, switching the capitalization is not expected in this case.

trsrm avatar Feb 10 '21 11:02 trsrm

What you say sounds reasonable. But I'm not quite sure what is the expected behavior in this case. How do you usually switch capitalizations?

gkpln3 avatar Feb 10 '21 13:02 gkpln3

Actually, I don't switch capitalization, I'm just using the "Shift" key. But MacOS allows doing it by long-press the "CapsLock".

https://support.apple.com/guide/mac-help/type-language-mac-input-sources-mchlp1406/mac

trsrm avatar Feb 10 '21 14:02 trsrm

If so, doesn't it make this whole utility useless for you? The goal of this utility is exactly to remove the short delay MacOS requires you to wait while holding the caps lock key for it to activate.

gkpln3 avatar Feb 10 '21 19:02 gkpln3

I'm using CapsLock to switch keyboard layout (switch typing language). But, MacOS has a stupid annoying "feature" that adds a delay to CapsLock key-press (no matter what action is mapped to it).

I tried your tool and it removes the delay, so the keyboard layout switches instantly. But, also it changes the capitalization on key-press - that is unexpected. I just want to remove the key-press delay.

trsrm avatar Feb 10 '21 20:02 trsrm

Oh I see what you mean, I will look into it. Thanks!

gkpln3 avatar Feb 12 '21 13:02 gkpln3

Is it expected to be fixed? This script is extremely useful but having capitalisation of the letters triggered simultaneously quite kills the script usefulness.

anderdeath avatar May 27 '22 11:05 anderdeath

I've tried to reproduce this issue with version 1.0.3 The program seems to work as expected. Can you guys confirm if this is still an issue or not?

gkpln3 avatar Jun 22 '22 09:06 gkpln3

Yes, it is still an issue, reproduced very often. Using Monterey 12.4

anderdeath avatar Jun 22 '22 09:06 anderdeath

Yes, it is still an issue, reproduced very often. Using Monterey 12.4

Me too!

If so, doesn't it make this whole utility useless for you? The goal of this utility is exactly to remove the short delay MacOS requires you to wait while holding the caps lock key for it to activate.

Maybe you could change it so that:

  1. instantly change capitalisation upon pressing
  2. if user holds CapsLock for less than 0.5s, do nothing upon release of key
  3. else, change capitalisation again.

Seems like an easy implementation.

XInTheDark avatar Jun 23 '22 07:06 XInTheDark

Upvote as well. Tried to use capslock for fast switching but Apple has weird delay with the keyboard. Slow keys helps but it affects touch bar. This extensions works for usual capslock usage but I have it bind to layout switching. Capslock still exists if you hold it for a long time

Karabiner elements didn't help, so I hope this app could help me

GitSparTV avatar Jun 29 '22 13:06 GitSparTV

Same here, switch both, lang and caps letters

wokalek avatar Nov 05 '22 14:11 wokalek

have the same bug with Ventura 13.0

renakdup avatar Nov 07 '22 20:11 renakdup

i'm also on ventura and looking for a similar fix to the problem @trsrm mentioned. i realise that it's not within the scope of what this program is supposed to do, but it comes close to solving an issue a lot of us have. maybe it'll help if i explain in detail.

when pressing caps lock to switch input sources, there is a very slight delay in detection that frequently causes the switching behaviour to fail. so, if i'm typing in english, and i then immediately hit caps lock to change the input source to pinyin chinese, and then immediately continue to type, macos doesn't always switch the input source over to the other language. caps lock should respond just as fast as space or shift in this scenario, but it doesn't.

your program seems to fix this problem by eliminating the delay on the caps lock key press being detected, so the program is indeed working as intended.

for those of us who type quickly in different languages, the actual function of always typing in caps is pretty much useless, but using caps lock to immediately switch input sources is invaluable.

what others (and i) are asking is: is it possible to add an option in your program to disable the capitalisation-locking part of caps lock, but still retain the behaviour/mechanism that fixes the delay in the os detecting the key press?

onelightinthedark avatar Nov 12 '22 21:11 onelightinthedark

@onelightinthedark Thanks for making this clear, I will try and look a fix for this kind of use, will keep you updated here.

gkpln3 avatar Nov 12 '22 21:11 gkpln3

+1 for this please help us!

gbougiakas avatar Nov 14 '22 18:11 gbougiakas

I've uploaded a new version that is supposed to fix this, can someone please confirm?

gkpln3 avatar Nov 22 '22 12:11 gkpln3

I can confirm that the new version works great!

gbougiakas avatar Nov 22 '22 12:11 gbougiakas

Great! closing this issue.

gkpln3 avatar Nov 22 '22 16:11 gkpln3

Great! closing this issue.

first, thanks for taking the time to look at this issue and update this.

unfortunately, it's not working for me on ventura 13.0.1. i checked all the obvious things like making sure the app is running, permissions in security settings, uninstalling and reinstalling, but the behaviour of the caps lock key seems to be unchanged. i still get the delay, and sometimes it toggles caps lock on instead of switching languages (and, as before, sometimes the key does nothing altogether).

it feels like macos is still waiting for the key-up event (not sure how it's technically termed), like it waits for caps lock to be released instead of pressed to decide whether or not to enable caps lock, do nothing, or switch the input language.

in any case, thanks again for taking a look at it. if i can provide logs or something else helpful, just let me know

onelightinthedark avatar Dec 08 '22 02:12 onelightinthedark

To add to the conversation after days of using it I have the exact same experience on Ventura. It’s not buggy anymore but it also doesn’t seem to do anything.

On Thu, 8 Dec 2022 at 04:15, m @.***> wrote:

Great! closing this issue.

first, thanks for taking the time to look at this issue and update this.

unfortunately, it's not working for me on ventura 13.0.1. i checked all the obvious things like making sure the app is running, permissions in security settings, uninstalling and reinstalling, but the behaviour of the caps lock key seems to be unchanged. i still get the delay, and sometimes it toggles caps lock on instead of switching languages (and, as before, sometimes the key does nothing altogether).

it feels like macos is still waiting for the key-up event (not sure how it's technically termed), like it waits for caps lock to be released instead of pressed to decide whether or not to enable caps lock, do nothing, or switch the input language.

in any case, thanks again for taking a look at it. if i can provide logs or something else helpful, just let me know

— Reply to this email directly, view it on GitHub https://github.com/gkpln3/CapsLockNoDelay/issues/3#issuecomment-1341882158, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5RYHPFDQYM3JZ5FJI3KHTWMFADRANCNFSM4XMZEFCA . You are receiving this because you commented.Message ID: @.***>

gbougiakas avatar Dec 08 '22 07:12 gbougiakas

Any news? I still have caps lock delay, when using it for switching language layout

s-titov avatar Feb 12 '23 19:02 s-titov

I can confirm that the tool seems to be doing nothing under M1 Pro Ventura 13.2

I have the same use case as the one OP thoroughly described.

mmatrosov avatar Feb 15 '23 17:02 mmatrosov

I also tried this tool, but it doesn't fix the issue with Caps Lock language switching.

Macbook Air M1 - Ventura 13.4.1 Macbook Air M2 - Ventura 13.4.1

leni8ec avatar Jul 22 '23 13:07 leni8ec