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

Allow cursor on context home thought #343

Closed
raineorshine opened this issue Feb 17, 2020 · 6 comments
Closed

Allow cursor on context home thought #343

raineorshine opened this issue Feb 17, 2020 · 6 comments
Labels
bug Something isn't working

Comments

@raineorshine
Copy link
Contributor

When in the Context View, if the thought is in the root context, it will display a home icon.

Screen Shot 2020-02-16 at 6 46 16 PM

Current Behavior

The cursor cannot be set on the home thought. Using the up and down arrows skips the home thought.

Expected Behavior

Instead of navigating to the home context, clicking the home icon should place the cursor on the thought. The home thought should not be editable, but may be deleted.

Using the up and down arrows should move the cursor to the home thought just like any other thought. This may require refactoring one or more of cursorUp, cursorDown, cursorNext, cursorPrev, nextSibling, prevSibling, selectNextEditable, selectPrevEditable, nextThoughtElement, and prevThoughtElement in order to have an elegant general solution instead of adding more special cases.

Also see: setCursor.

@raineorshine
Copy link
Contributor Author

@shresthabijay Anmol confirms this has been fixed in dev. Could you test when you get the chance? Thanks!

@shresthabijay
Copy link
Contributor

@raineorshine I tested this on the latest dev.

  • Using the up and down arrows moves the cursor to the home thought just like any other thought. But when home icon thought is selected, the cursor selection still remains at the previous node. So on trying to edit will actually cause edit on previous node.

Screen Capture_select-area_20200630103115

  • Clicking the home icon doesn't place the cursor on the thought and still navigates to the home context.
  • Delete inside context view doesn't work at all for me for any thoughts.

@raineorshine
Copy link
Contributor Author

raineorshine commented Jul 2, 2020

when home icon thought is selected, the cursor selection still remains at the previous node

To remove the caret, consider the simple approach in b30b29b. (Open to suggestions about how to cleanly move the side effect out of the reducer though.)

@raineorshine
Copy link
Contributor Author

raineorshine commented Aug 8, 2020

@raineorshine
Copy link
Contributor Author

raineorshine commented Dec 26, 2020

Since JSDOM does not have full caret emulation, we should use Puppeteer for caret testing.

@raineorshine raineorshine added this to the 📖 Context View milestone Jan 10, 2021
@raineorshine raineorshine added the hold Pause development label Jul 26, 2021
@raineorshine

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants