Repository navigation
[windows] Pressing Right-Shift turns on caps lock and locks in a TextField #75675
Copy link
Copy link
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: desktopRunning on desktopRunning on desktopa: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsc: regressionIt was better in the past than it is nowIt was better in the past than it is nowcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 1.26Found to occur in 1.26Found to occur in 1.26found in release: 1.27Found to occur in 1.27Found to occur in 1.27has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-windowsBuilding on or for Windows specificallyBuilding on or for Windows specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Description
On flutter desktop, Right-Shift turns on caps lock and locks in a TextField
Code excample:
TextField(
decoration: InputDecoration(
alignLabelWithHint: true,
labelText: 'Escribe el mensaje...',
hintText: '...',
labelStyle: TextStyle(
fontSize:
Theme.of(context).textTheme.headline6.fontSize)),
maxLines: 8,
enableInteractiveSelection: true,
controller: messageController,
onChanged: (value) {
},
),
Flutter Doctor:
> Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel dev, 1.26.0-17.1.pre, on Microsoft Windows [Version 10.0.19042.746], locale es-MX)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.8.4)
[√] Android Studio (version 4.0)
[√] VS Code (version 1.53.0)
[√] Connected device (3 available)
• No issues found!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: desktopRunning on desktopRunning on desktopa: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsc: regressionIt was better in the past than it is nowIt was better in the past than it is nowcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 1.26Found to occur in 1.26Found to occur in 1.26found in release: 1.27Found to occur in 1.27Found to occur in 1.27has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-windowsBuilding on or for Windows specificallyBuilding on or for Windows specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Activity
TahaTesser commentedon Feb 9, 2021
Hi @ChargerMc
Thanks for filing the issue, I can reproduce it on Windows (not on macOS), the right-shift key is acting as CAPS lock on the
devandmastercode sample
flutter doctor -v
[√] Flutter (Channel dev, 1.26.0-17.2.pre, on Microsoft Windows [Version 10.0.19042.746], locale en-US) • Flutter version 1.26.0-17.2.pre at C:\Users\Taha\Code\flutter_dev • Framework revision 79b49b9e10 (5 days ago), 2021-02-03 15:33:39 -0800 • Engine revision 2c527d6c7e • Dart version 2.12.0 (build 2.12.0-259.8.beta) [√] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at C:\Users\Taha\Code\SDK • Platform android-30, build-tools 30.0.3 • ANDROID_HOME = C:\Users\Taha\Code\SDK • Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01) • All Android licenses accepted. [√] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe [√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.8.4) • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community • Visual Studio Community 2019 version 16.8.30907.101 • Windows 10 SDK version 10.0.18362.0 [√] Android Studio (version 4.1.0) • Android Studio at C:\Users\Taha\Code\android-studio • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01) [√] VS Code (version 1.53.0) • VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.19.0 [√] Connected device (3 available) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19042.746] • Chrome (web) • chrome • web-javascript • Google Chrome 88.0.4324.150 • Edge (web) • edge • web-javascript • Microsoft Edge 88.0.705.63 • No issues found![√] Flutter (Channel master, 1.26.0-18.0.pre.215, on Microsoft Windows [Version 10.0.19042.746], locale en-US) • Flutter version 1.26.0-18.0.pre.215 at C:\Users\Taha\Code\flutter_master • Framework revision f3c10bd23a (3 hours ago), 2021-02-08 21:52:03 -0800 • Engine revision b04955656c • Dart version 2.13.0 (build 2.13.0-0.0.dev) [√] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at C:\Users\Taha\Code\SDK • Platform android-30, build-tools 30.0.3 • ANDROID_HOME = C:\Users\Taha\Code\SDK • Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01) • All Android licenses accepted. [√] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe [√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.8.4) • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community • Visual Studio Community 2019 version 16.8.30907.101 • Windows 10 SDK version 10.0.18362.0 [√] Android Studio (version 4.1.0) • Android Studio at C:\Users\Taha\Code\android-studio • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01) [√] VS Code (version 1.53.0) • VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.19.0 [√] Connected device (3 available) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19042.746] • Chrome (web) • chrome • web-javascript • Google Chrome 88.0.4324.150 • Edge (web) • edge • web-javascript • Microsoft Edge 88.0.705.63 • No issues found!Thank you
[-][Flutter Desktop] Textfield bloq mayus when pressing right shift.[/-][+][windows] Pressing Right-Shift turns on caps lock and locks in a TextField[/+]ChargerMc commentedon Feb 9, 2021
Great, thank u!
nekomaruh commentedon Feb 9, 2021
There is a similar issue in macos. For example when you write CAPITAL LETTERS, you cannot delete the Text if the String ends with a capital one. This happens when using textfield or cupertinotextfield and seems to be a Flutter binding library problem.
Im still waiting for the team to solve this issue since 4 months ago.
33 remaining items
Coimbra1984 commentedon May 4, 2021
During testing the above (which works), I reached to a horrible defect. I have a German keyboard, to make a @ sign we have to press ALT-GR+Q key. When I do this, something happens which makes windows completely confused. I'm unable to enter anything after that even in other programs, I need to restart my PC. We tested this behaviour on two different machines, against the flutter stable, beta and dev channel. All show the same problem. Is this part of this defect here, or must I open a new one for that?
dkwingsmt commentedon May 4, 2021
@ChargerMc @Coimbra1984 Neither of your problems is not part of this issue (which I feel bad to hear). Can you check if there are existing issues, and if not, open a new one with reproduction step? Thank you.
dkwingsmt commentedon May 4, 2021
@Coimbra1984 The AltGr issue is probably #78005.
dkwingsmt commentedon May 4, 2021
@cbracken Is the "holá" issue a known one?
ChargerMc commentedon May 4, 2021
Yes, there's a issue: #75510
gerryhigh commentedon May 4, 2021
This fix worked for me--I wrapped my login screen class in this to fix login issues. Thanks!
gutisalex commentedon May 5, 2021
thanks that worked...
RobertLemmens commentedon May 23, 2021
thanks, this worked for me aswell.
iampopal commentedon May 25, 2021
Waiting for a fix for this issue, it's still happening at flutter 2.2 version
zsmiklos commentedon Jun 10, 2021
@imariman have written a quick fix (hack) for this bug at this page: #78005 It works! So I published my first Flutter Windows app with this hack. (Now we are waiting for a permanent fix from Flutter team. But it does not matter now.)
dkwingsmt commentedon Jul 13, 2021
I'll close this issue for now but feel free comment if there are any related problems, and reopen this issue if deemed necessary (don't forget to append your Flutter version in the report).
For non-related problems mentioned in this thread, please move forward to their respective issue page (we will fix them for sure).
github-actions commentedon Aug 12, 2021
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
flutter doctor -vand a minimal reproduction of the issue.