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

Conversation

@Renzo-Olivares
Copy link
Contributor

@Renzo-Olivares Renzo-Olivares commented May 16, 2023

Fixes flutter/flutter#101569

This block of code was originally introduced in #15560 , but removing it does not have any affect on the software text editing controls in GBoard.

Before this change

  • shift + arrow right/left selection would collapse after releasing the shift key.
  • shift + mouse click to expand selection would collapse after releasing the shift key.

After this change

  • shift key up no longer collapses the selection.

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.

@Renzo-Olivares Renzo-Olivares changed the title Android shift Do not collapse selection on shift key up May 16, 2023
@Renzo-Olivares Renzo-Olivares changed the title Do not collapse selection on shift key up [Android] Do not collapse text selection on shift key up May 16, 2023
Copy link
Contributor

@justinmc justinmc left a comment

Choose a reason for hiding this comment

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

LGTM, but just to make sure, have you verified that the Gboard text editing keyboard still works with this change? As shown in #15560.

@Renzo-Olivares
Copy link
Contributor Author

@justinmc Yeah I tested that Gboard text editing keyboard still works. I could not get it to send a shift key event while pressing any combination of buttons.

@Renzo-Olivares Renzo-Olivares added the autosubmit Merge PR when tree becomes green via auto submit App label May 17, 2023
@auto-submit auto-submit bot merged commit 47c0d03 into flutter:main May 17, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request May 17, 2023
…127053)

flutter/engine@331c576...d970370

2023-05-17 [email protected] Roll Fuchsia Linux SDK from YrEDYUB9NKhirgo5s... to SDKw1RvH0dWiJXERo... (flutter/engine#42100)
2023-05-17 [email protected] [Impelller] fix flickering due to synchronization issues in compute tessellator. (flutter/engine#42076)
2023-05-17 [email protected] [Android] Do not collapse text selection on shift key up (flutter/engine#42075)

Also rolling transitive DEPS:
  fuchsia/sdk/core/linux-amd64 from YrEDYUB9NKhi to SDKw1RvH0dWi

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
CaseyHillers pushed a commit to CaseyHillers/flutter that referenced this pull request May 24, 2023
…lutter#127053)

flutter/engine@331c576...d970370

2023-05-17 [email protected] Roll Fuchsia Linux SDK from YrEDYUB9NKhirgo5s... to SDKw1RvH0dWiJXERo... (flutter/engine#42100)
2023-05-17 [email protected] [Impelller] fix flickering due to synchronization issues in compute tessellator. (flutter/engine#42076)
2023-05-17 [email protected] [Android] Do not collapse text selection on shift key up (flutter/engine#42075)

Also rolling transitive DEPS:
  fuchsia/sdk/core/linux-amd64 from YrEDYUB9NKhi to SDKw1RvH0dWi

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App platform-android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Android]Text selection using the physical keyboard is lost on releasing shift key

3 participants