Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add variable to hold editor selection for colour menu #400

Merged
merged 2 commits into from
Aug 21, 2023

Conversation

rileyhawk1417
Copy link
Contributor

This pr solves issue #342
Adding a variable to hold the selection temporarily while the user chooses a custom colour solves the issue.
Since the focus would have moved from the editor onto the colour, that's how the selection was lost.

@codecov
Copy link

codecov bot commented Aug 19, 2023

Codecov Report

Merging #400 (820d13d) into main (61be737) will increase coverage by 0.01%.
Report is 4 commits behind head on main.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #400      +/-   ##
==========================================
+ Coverage   80.78%   80.79%   +0.01%     
==========================================
  Files         252      253       +1     
  Lines       10271    10284      +13     
==========================================
+ Hits         8297     8309      +12     
- Misses       1974     1975       +1     
Files Changed Coverage Δ
...editor/toolbar/desktop/items/color/color_menu.dart 0.00% <0.00%> (ø)

... and 4 files with indirect coverage changes

@rileyhawk1417 rileyhawk1417 changed the title fix: add variable to hold selection fix: add variable to hold editor selection for colour menu Aug 19, 2023
@LucasXu0 LucasXu0 merged commit 1f2668c into AppFlowy-IO:main Aug 21, 2023
9 of 10 checks passed
q200892907 added a commit to q200892907/appflowy-editor that referenced this pull request Aug 28, 2023
* main: (48 commits)
  chore: comment suggesting use of deprecated method (AppFlowy-IO#417)
  fix: replace matches on the same node (AppFlowy-IO#418)
  fix: rect of the divider block is incorrect (AppFlowy-IO#415)
  chore: bump version 1.2.4 (AppFlowy-IO#414)
  feat: migrate copy paste command from AppFlowy (AppFlowy-IO#413)
  feat: added support for custom parser for markdown to document (AppFlowy-IO#403)
  feat: improve CJK IME support
  feat: add support for context menu items to the editor
  fix: refactor _onSelectionChange method to update _showPlaceholder state more efficiently
  fix: typo (AppFlowy-IO#408)
  Fix selected nodes (AppFlowy-IO#407)
  fix: miss the nested node when copying (AppFlowy-IO#406)
  feat: skip whitespace between words while navigating with CTRL+ARROW keys (AppFlowy-IO#363)
  feat: double hyphen to em dash (AppFlowy-IO#395)
  fix: add variable to hold editor selection for colour menu (AppFlowy-IO#400)
  test: open link command
  refactor: show link command test
  refactor: show link menu command
  feat: open link command
  fix: placeholder on paragraph when selected (AppFlowy-IO#390)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants