Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Fix windows keyboard: Extended key, delegate order#26757

Merged
dkwingsmt merged 10 commits into
flutter-team-archive:masterfrom
dkwingsmt:win-key
Jun 17, 2021
Merged

Fix windows keyboard: Extended key, delegate order#26757
dkwingsmt merged 10 commits into
flutter-team-archive:masterfrom
dkwingsmt:win-key

Conversation

@dkwingsmt

@dkwingsmt dkwingsmt commented Jun 15, 2021

Copy link
Copy Markdown
Contributor

This PR fixes Windows's keyboard implementation by:

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on
    writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.
  • The reviewer has submitted any presubmit flakes in this PR using the engine presubmit flakes form before re-triggering the failure.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@gspencergoog gspencergoog left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

32384589-a60f0e74-c078-11e7-9bc1-e5b5287aea9d

Comment thread shell/platform/windows/flutter_windows_view_unittests.cc
// emitting a warning on the console about unhandled events.
static constexpr int kMaxPendingEvents = 1000;

// Chromium uses this bit in scancode to mark "extended" keys.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you saying "Chromium" here because that's where you saw this pattern, or does this have something to do with Chromium on Windows running Flutter code? (I imagine it can only be the first, but the comment is unclear).

@dkwingsmt dkwingsmt added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Jun 16, 2021
@fluttergithubbot

Copy link
Copy Markdown
Contributor

This pull request is not suitable for automatic merging in its current state.

  • The status or check suite build_and_test_linux_unopt_debug has failed. Please fix the issues identified (or deflake) before re-applying this label.
  • The status or check suite licenses_check has failed. Please fix the issues identified (or deflake) before re-applying this label.
  • The status or check suite Prebuild ci/docker/build/Dockerfile has failed. Please fix the issues identified (or deflake) before re-applying this label.

@fluttergithubbot fluttergithubbot removed the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Jun 16, 2021
@dkwingsmt dkwingsmt merged commit 9d2ab41 into flutter-team-archive:master Jun 17, 2021
@dkwingsmt dkwingsmt deleted the win-key branch June 17, 2021 12:00
flar pushed a commit to flutter/flutter that referenced this pull request Jun 18, 2021
* 7e449ce Roll Skia from fab6ede2ec1d to 33da72d168d7 (24 revisions) (flutter-team-archive/engine#26790)

* 9d2ab41 Fix windows keyboard: Extended key, delegate order (flutter-team-archive/engine#26757)

* e3f4f2b Roll Dart SDK from 2084c5eeef79 to 914b1c6d1c88 (4 revisions) (flutter-team-archive/engine#26792)

* 4754a23 Roll Skia from 33da72d168d7 to 491282486e34 (1 revision) (flutter-team-archive/engine#26793)

* 6a7f1a9 Roll Skia from 491282486e34 to b2cb817d23d0 (4 revisions) (flutter-team-archive/engine#26795)

* 42d391d Fix a leak of the resource EGL context on Android (flutter-team-archive/engine#26789)

* 4f89b26 Roll Dart SDK from 914b1c6d1c88 to 369366069b83 (1 revision) (flutter-team-archive/engine#26799)

* 6e9444b Roll Skia from b2cb817d23d0 to e8502cc73c5d (5 revisions) (flutter-team-archive/engine#26801)

* 86dacc0 Revert "Support scrolling in iOS accessibility (#26671)" (flutter-team-archive/engine#26803)

* 0cbaa80 Disable Skia reduceOpsTaskSplitting option (flutter-team-archive/engine#26568)

* b9761b2 Roll Skia from e8502cc73c5d to 8e814b3be082 (6 revisions) (flutter-team-archive/engine#26805)

* e274d31 Remove autoninja calls from the analyze script. (flutter-team-archive/engine#26752)

* 399917c Revert "Remove autoninja calls from the analyze script. (#26752)" (flutter-team-archive/engine#26812)

* b9616ca Roll Dart SDK from 369366069b83 to 0796dd6c7bcf (1 revision) (flutter-team-archive/engine#26807)
wqyfavor pushed a commit to wqyfavor/engine that referenced this pull request Jun 21, 2021
…ive#26757)

* Adjust order

* Update code

* Fix Extended

* Add tests

* Better constants

* Format

* Comment

* Link
@au-top

au-top commented Jun 23, 2021

Copy link
Copy Markdown

It has a certain effect! Thank you for your contribution! But I found that the problem still exists. I still can't delete it after using Win + space in the flutter. I need to press win again in the flutter program to fix this phenomenon!

Only textfield is needed to reproduce


Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel master, 2.3.0-17.0.pre.397, on Microsoft Windows [Version 10.0.17763.1999], locale zh-CN)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    X cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Enterprise 2019 16.9.0)
[√] Android Studio (version 4.1.0)
[√] IntelliJ IDEA Community Edition (version 2021.1)
[√] VS Code
[√] VS Code, 64-bit edition (version 1.56.2)
[√] Connected device (2 available)

! Doctor found issues in 1 category.

@RPRX

RPRX commented Jun 23, 2021

Copy link
Copy Markdown

@au-top Upgrade 到最新 master channel 即可,2.3.0-17.0.pre.397 还不包含修复了问题的 flutter engine。

@au-top

au-top commented Jun 24, 2021

Copy link
Copy Markdown

@au-top Upgrade 到最新 master channel 即可,2.3.0-17.0.pre.397 还不包含修复了问题的 flutter engine。

好的谢谢!

naudzghebre pushed a commit to naudzghebre/engine that referenced this pull request Sep 2, 2021
…ive#26757)

* Adjust order

* Update code

* Fix Extended

* Add tests

* Better constants

* Format

* Comment

* Link
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Development

Successfully merging this pull request may close these issues.

5 participants