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 shortcuts stop working when caps lock is down. #79374
Comments
CC @justinmc |
I can't reproduce this on the latest master using the same version of Big Sur with the code above. I start the app, type "FFFFFF", and press delete, and it deletes like normal. Am I following the steps correctly? Strange bug though, I'm not sure what would cause this. |
@justinmc Screen.Recording.2021-03-30.at.7.17.56.PM.mov |
I wasn't able to replicate this issue using physical keyboard as mentioned in issue description, but only by following below pattern that involves onscreen keyboard.
79374_w_ph_keyb.mov
79373_w_onscreen_keyb.mov
79374_again_p_keyb.movLooking at step 2 above, if we are coming back from onscreen keyboard to physical keyboard, then regular letters in small caps or upper case letters are not getting deleted, so this issue isn't limited to not deleting last upper case letter, but if the last letter is small caps, the same issue persists. flutter doctor -v
|
Originally issue reproduced without using the on-screen keyboard #79374 (comment) Here is a demonstration of the issue without ever opening the on-screen keyboard [1 min complete preview] Screen.Recording.2021-03-31.at.1.00.19.PM.movKeyboard layoutNote: The issue also reproduced when using direct MacBook's keyboard as well as when using a magic keyboard, no difference |
Updated my earlier comment to indicate it was replicable only by using onscreen keyboard + physical keyboard for me. |
This is a known issue caused by not tracking the caps lock state separately from the caps lock key press state. This should be fixed by #44918 |
Hi all, I originally raised another ticket when I encountered this problem on the mac, but subsequently discovered that this one had already been raised. In my case it was specifically that backspace, delete and cursor arrows just mysteriously stop working when caps-lock is on. I see that #44918 has been earmarked as the ticket that will fix it, however that ticket has been open for almost 2 years now with no visibility as to when it will be released (which is totally fine... it is a large ticket with a lot of implications so I get that it takes time). However, the question is what to do about this problem right now. Where we are at the moment is that the app can easily get into a state where important keystrokes are just ignored and there's no clue to the user about why that is happening. I mean, I'm a developer and it took me ages to track down a repeatable case... what hope do my users have of figuring out why the app has suddenly stopped responding? Is there any chance of a tactical fix or a suggested workaround while we're waiting for 44918 (and/or a bump in the priority)? I get that caps-lock isn't massively used on mobile, but on desktop/web, it is very common. This feels, to me, like a pretty bad bug and to be honest, I'm reluctant to ship a mac app where my app becomes non-responsive just because the user has their caps-lock key on. |
Actually, there's definitely another underlying problem with the cursor/backspace keys. I've lost count of the number of times I've just suddenly lost the ability to backspace even without caps lock on (it also affects the cursor arrow keys, delete, and the tab key). Normal text entry continues to work fine. I'm yet to find a reliable way to reproduce, but it happens approx 10 times a day for me (note that this is on macOS... not sure if it happens on mobile too). Not that I expect anyone from the Flutter team to be able to do anything without a repeatable test case, but I just thought I'd mention it here as a datapoint. |
Assigning to @dkwingsmt to ensure this is on his radar. @dkwingsmt can you confirm whether this issue is still an issue? |
Tested just now on Win32 and wasn't able to reproduce in the following situations:
I'm going to label this as macOS-specific for the moment since it seems like all reports above have been for macOS. I have not yet tested on macOS. |
I tested this on macOS, and was unable to reproduce it on a Macbook with the system physical keyboard. Which is not to say that it might not happen intermittently and just didn't happen to me the several times (~20) that I tried it. |
@dkwingsmt we're punting this to the post-stable project. |
This issue should have been fixed by #80756 (merged on Apr 26, 2021). @edwardaux I'm sorry to hear about the random hiccups. We have improved a lot since your comment. Let us know if you're experiencing any issues lately. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to reproduce
TextField()
or try the code sample below
code sample
Actual Results
Be able to enter only capital text and delete the text with backspace/delete
Expected Results
Not able to delete text with backspace/delete when text is in caps in the end
Note:
flutter doctor -v
The text was updated successfully, but these errors were encountered: