Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard layout switching #3

Open
trsrm opened this issue Feb 10, 2021 · 23 comments
Open

Keyboard layout switching #3

trsrm opened this issue Feb 10, 2021 · 23 comments
Labels
bug Something isn't working

Comments

@trsrm
Copy link

trsrm commented Feb 10, 2021

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.

@gkpln3
Copy link
Owner

gkpln3 commented Feb 10, 2021

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?

@trsrm
Copy link
Author

trsrm commented Feb 10, 2021

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

@gkpln3
Copy link
Owner

gkpln3 commented Feb 10, 2021

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.

@trsrm
Copy link
Author

trsrm commented Feb 10, 2021

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.

@gkpln3
Copy link
Owner

gkpln3 commented Feb 12, 2021

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

@anderdeath
Copy link

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

@gkpln3
Copy link
Owner

gkpln3 commented Jun 22, 2022

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?

@anderdeath
Copy link

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

@XInTheDark
Copy link

XInTheDark commented Jun 23, 2022

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.

@GitSparTV
Copy link

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

@gkpln3 gkpln3 added the bug Something isn't working label Aug 22, 2022
@wokalek
Copy link

wokalek commented Nov 5, 2022

Same here, switch both, lang and caps letters

@renakdup
Copy link

renakdup commented Nov 7, 2022

have the same bug with Ventura 13.0

@onelightinthedark
Copy link

onelightinthedark commented Nov 12, 2022

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?

@gkpln3
Copy link
Owner

gkpln3 commented Nov 12, 2022

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

@gbougiakas
Copy link

gbougiakas commented Nov 14, 2022

+1 for this please help us!

@gkpln3
Copy link
Owner

gkpln3 commented Nov 22, 2022

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

@gbougiakas
Copy link

I can confirm that the new version works great!

@gkpln3
Copy link
Owner

gkpln3 commented Nov 22, 2022

Great! closing this issue.

@gkpln3 gkpln3 closed this as completed Nov 22, 2022
@onelightinthedark
Copy link

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

@gbougiakas
Copy link

gbougiakas commented Dec 8, 2022 via email

@s-titov
Copy link

s-titov commented Feb 12, 2023

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

@gkpln3 gkpln3 reopened this Feb 13, 2023
@mmatrosov
Copy link

mmatrosov commented Feb 15, 2023

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.

@leni8ec
Copy link

leni8ec commented Jul 22, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests