-
Notifications
You must be signed in to change notification settings - Fork 124
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
Comments
@shresthabijay Anmol confirms this has been fixed in |
@raineorshine I tested this on the latest
|
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.) |
|
Since JSDOM does not have full caret emulation, we should use Puppeteer for caret testing. |
When in the Context View, if the thought is in the root context, it will display a home icon.
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
, andprevThoughtElement
in order to have an elegant general solution instead of adding more special cases.Also see:
setCursor
.The text was updated successfully, but these errors were encountered: