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

Conversation

@dkwingsmt
Copy link
Contributor

This PR changes the logicalKey value of a KeyEvent that has a multi-char character.

For detailed explanation, see flutter/flutter#94432.

This fixes the macOS-embedder part of #82673.

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.

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

Copy link
Contributor

@gspencergoog gspencergoog left a comment

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

//
// See https://en.wikipedia.org/wiki/UTF-16#Description for the algorithm.
//
// The returned character array must be cleared with delete[]. The length of
Copy link
Contributor

Choose a reason for hiding this comment

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

Cleared, or deallocated?

@dkwingsmt dkwingsmt merged commit b420c16 into flutter:main Dec 1, 2021
@dkwingsmt dkwingsmt deleted the mac-keyboard-multiple-character branch December 1, 2021 08:49
zanderso pushed a commit to flutter/flutter that referenced this pull request Dec 2, 2021
* 9b200e1 Roll Dart SDK from 9f61c2487bbd to 3a963ff14181 (7 revisions) (flutter/engine#30011)

* fada035 Use WindowInfoTracker.Companion.getOrCreate instead of the short version (flutter/engine#30012)

* d280475 Non painting platform views (flutter/engine#30003)

* b420c16 [macOS] MacOS Keyboard properly handles multi-char characters (flutter/engine#30005)

* 0a6098b [Win32, keyboard] Fix dead key events that don't have the dead key mask (flutter/engine#30004)

* 8ac9366 Fix sceneElement analysis error (flutter/engine#30038)

* 5ad06c2 Share the io_manager between parent and spawn engine (flutter/engine#29915)

* 69be405 Run Dart VM tasks on the engine's ConcurrentMessageLoop instead the VM's separate thread pool. (flutter/engine#29819)

* c85a129 Roll Dart SDK from 3a963ff14181 to 8bb2e56ec900 (4 revisions) (flutter/engine#30045)

* abf6c34 Eliminate hardcoded scale factor in a11y scroll (flutter/engine#30013)

* d184d9b Roll Skia from fa183572bfd3 to d3399178196e (17 revisions) (flutter/engine#30047)

* 476ed30 Roll web_installers simulators package (flutter/engine#30035)

* 62113c4 Revert dart to 9f61c2487bbd (flutter/engine#30056)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants