Skip to content

Fix issue with cut #3246

Merged
swissspidy merged 13 commits intodevelopfrom
fix/cut-copy
Sep 18, 2019
Merged

Fix issue with cut #3246
swissspidy merged 13 commits intodevelopfrom
fix/cut-copy

Conversation

@spacedmonkey
Copy link
Copy Markdown
Contributor

@spacedmonkey spacedmonkey commented Sep 16, 2019

Fix cut via keyboard by using state based clipboard over the browser clipboard. This copies the logic used in the right click menu logic.

Fixes #3250

@googlebot googlebot added the cla: yes Signed the Google CLA label Sep 16, 2019
@spacedmonkey spacedmonkey added this to the v1.3 milestone Sep 16, 2019
@spacedmonkey spacedmonkey added AMP Stories Bug Something isn't working labels Sep 16, 2019
@spacedmonkey
Copy link
Copy Markdown
Contributor Author

Spent a little more time working on this. Feel like we currently have is much cleaner than what we had. Did a little refactoring on this one as well, couldnt help myself.

@spacedmonkey
Copy link
Copy Markdown
Contributor Author

Fixes #3250

Copy link
Copy Markdown
Collaborator

@swissspidy swissspidy left a comment

Choose a reason for hiding this comment

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

Cut / Copy / Paste seems to work fine with these changes applied.

Just left some feedback about inline docs that should be improved before merging. Otherwise LGTM.

…dler.js

Co-Authored-By: Pascal Birchler <pascalb@google.com>
@spacedmonkey
Copy link
Copy Markdown
Contributor Author

Will this go in 1.3 or 1.3.1? @swissspidy If 1.3.1, can you change the milestone?

@swissspidy swissspidy merged commit 06ff84f into develop Sep 18, 2019
@swissspidy swissspidy deleted the fix/cut-copy branch September 18, 2019 14:11
westonruter added a commit that referenced this pull request Oct 1, 2019
* tag '1.3.0': (318 commits)
  Bump 1.3.0
  Add inline styles for custom fonts (#3345)
  Limit deeply-nesting test to 200 to fix Xdebug error (#3341)
  Bump 1.3-RC2 (#3335)
  Sanitize invalid children of amp-story and amp-story-page elements to prevent white story of death (#3336)
  Remove unused Travis deploy stage (#3340)
  Implement automated accessibility testing using Axe (#3294)
  Only add all Google Font style rules in editor context
  Prevent adding AMP query var to Story URLs in Compatibility Tool
  Prevent attempting to redirect Stories with rejected validation errors
  Ensure all AMP scripts (including v0.js) get moved to the head
  Make sure that media picker is background types are filter correctly.
  Normalize style[type] attribute quote style after r46164 in WP core
  Fix phpunit covers tags
  Bump version to 1.3-RC1
  Strip 100% width/height from layout=fill elements
  Fix issue with cut (#3246)
  Remove unused Google Fonts SVGs (#3289)
  Fix resize for non-fit text box (#3259)
  Use template_dir consistently as signal for transitional mode
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working cla: yes Signed the Google CLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue with keyboard cut to clipboard

4 participants